2017-08-25 08:25:11 +02:00
|
|
|
Development environment for MONARC
|
|
|
|
==================================
|
|
|
|
|
|
|
|
Vagrant is convenient to use in order to setup your development environment.
|
|
|
|
|
|
|
|
This VM uses `synced folders <https://www.vagrantup.com/docs/synced-folders/>`_
|
|
|
|
feature of Vagrant in order to let you work on the MONARC source code on your
|
|
|
|
host machine while the softwares (Apache, PHP, MariaDB, etc.) and libraries
|
|
|
|
will be installed on the guest Vagrant machine.
|
|
|
|
|
|
|
|
|
|
|
|
Installation of VirtualBox and Vagrant
|
|
|
|
--------------------------------------
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2018-09-21 15:33:20 +02:00
|
|
|
$ sudo apt install virtualbox vagrant
|
2017-08-25 08:25:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
Deployment of the back office
|
|
|
|
------------------------------
|
|
|
|
|
2018-01-26 08:30:08 +01:00
|
|
|
MONARC will be automatically deployed in an Ubuntu Artful Server.
|
2017-08-25 08:25:11 +02:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
$ git clone https://github.com/monarc-project/MonarcAppBO
|
|
|
|
$ cd MonarcAppBO/vagrant
|
|
|
|
$ vagrant up
|
|
|
|
|
|
|
|
Once the VM will be configured by Vagrant, go to the address
|
2018-09-21 15:33:20 +02:00
|
|
|
http://127.0.0.1:5000.
|
2017-08-25 08:25:11 +02:00
|
|
|
|
2019-11-21 08:51:06 +01:00
|
|
|
The username is *admin@admin.localhost* and the password is *admin*.
|
2017-08-25 08:25:11 +02:00
|
|
|
|
|
|
|
You can now edit the source code with your favorite editor and test it in your
|
|
|
|
browser. The only thing is to not forget to restart Apache in the VM after a
|
|
|
|
modification.
|