Files
wger/docs/development.rst
Roland Geider 513edbe0fa Improvements to the documentation
This first step just rearranged the different sections and grouped them in a
hopefully more logical fashion.
2017-02-22 19:41:17 +01:00

70 lines
1.3 KiB
ReStructuredText

.. _development:
Development
===========
Requirements
------------
Get the code
~~~~~~~~~~~~
The code is available on Github::
$ git clone https://github.com/wger-project/wger.git
Create a virtual environment
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It's a best practise to create a Python virtual environment::
$ virtualenv --python python3 venv-wger
$ source venv-wger/bin/activate
$ cd wger
Install Requirements
~~~~~~~~~~~~~~~~~~~~
To install the Python requirements::
$ pip install -r requirements_devel.txt
$ python setup.py develop
Install NodeJS and npm::
Follow the instructions on the `NPM website <https://docs.npmjs
.com/getting-started/installing-node>`_ and make sure to use Node LTS (4
.x).
Install the npm modules::
$ npm install
Install site
~~~~~~~~~~~~
To install the server::
$ wger create_settings \
--settings-path /home/wger/wger/settings.py \
--database-path /home/wger/wger/database.sqlite
$ wger bootstrap \
--settings-path /home/wger/wger/settings.py \
--no-start-server
Start the server
----------------
To start the server::
$ python manage.py runserver
That's it. You can log in with the default administator user:
* **username**: admin
* **passsword**: admin
You can start the application again with the django server with
``python manage.py runserver``.