Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Setting up development environment: Difference between revisions

From MoodleDocs
m (some comments about the utility of ngrok.)
No edit summary
Line 51: Line 51:
* [[Setting_up_Eclipse | Eclipse]]
* [[Setting_up_Eclipse | Eclipse]]
* [[Setting_up_Netbeans | Netbeans]]
* [[Setting_up_Netbeans | Netbeans]]
== 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 ==
== Other tools ==
Line 57: Line 65:
** Use [https://ngrok.com/docs#authtoken authtoken] for better experience
** Use [https://ngrok.com/docs#authtoken authtoken] for better experience
** [https://gist.github.com/andrewnicols/a338c43feca0a87a60248b8097de2ef5 MDK integration]
** [https://gist.github.com/andrewnicols/a338c43feca0a87a60248b8097de2ef5 MDK integration]




[[Category:Developer tools|Development environment]]
[[Category:Developer tools|Development environment]]

Revision as of 07:32, 19 June 2019

This is a quick guide which contains all the tools you'll need to configure your development environment:

Git

Apache + PHP

More information: Category:Installation

Database

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:

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...)