Setting up development environment: Difference between revisions
David Mudrak (talk | contribs) m (→IDE: Add ViM page link) |
David Mudrak (talk | contribs) m (Text replacement - "<code php>" to "<syntaxhighlight lang="php">") |
||
Line 34: | Line 34: | ||
* [https://github.com/FMCorz/mdk#user-content-for-development Setup] | * [https://github.com/FMCorz/mdk#user-content-for-development Setup] | ||
** Sample to create some instances (both based on master, first using PostgreSQL and second MySQL: | ** Sample to create some instances (both based on master, first using PostgreSQL and second MySQL: | ||
< | <syntaxhighlight lang="php"> | ||
mdk create --install --engine pgsql --run mindev users makecourse | mdk create --install --engine pgsql --run mindev users makecourse | ||
mdk create --install --engine mysqli --run mindev users makecourse -n stable_master-mysql | mdk create --install --engine mysqli --run mindev users makecourse -n stable_master-mysql |
Revision as of 13:36, 14 July 2021
This is a quick guide which contains all the tools you'll need to configure your development environment:
Git
Apache + PHP
- Depending on your computer's OS:
- Extensions and libraries
- Enable SSL for Apache (Transitioning to HTTPS)
More information: Category:Installation
Database
- Server:
- PostgreSQL (recommended)
- MariaDB (recommended)
- MySQL
- MSSQL
- Oracle (not recommended)
- Client:
Moodle
Manual installation
Moodle Development Kit (MDK)
Only for Linux and MacOS (not available for Windows)
- Setup
- Sample to create some instances (both based on master, first using PostgreSQL and second MySQL:
<syntaxhighlight lang="php"> mdk create --install --engine pgsql --run mindev users makecourse mdk create --install --engine mysqli --run mindev users makecourse -n stable_master-mysql
- Behat
- JRE
- GoogleChrome driver (Firefox stopped working)
Docker
IDE
COMMAND LINE
To view logs in real time on linux based machines you can use at the command line : # tail - f
Example: # tail -f /var/log/apache2/error.log
By viewing logs in real time you will find it easier to correlate actions and errors.
Other tools
- Grunt
- Ngrok, for getting your dev/private site publicly available (for sharing, for testing various integrations requiring public site, SSL or no...)
- Use authtoken for better experience
- MDK integration