1
0
Fork 0
satnogs-db/docs/installation-virtualenv.rst

45 lines
1.0 KiB
ReStructuredText
Raw Normal View History

2017-03-13 11:15:06 -06:00
VirtualEnv Installation
=======================
Requirements: You will need python, python-virtualenvwrapper, pip and git
#. **Build the environment**
2017-10-02 06:55:43 -06:00
Clone source code from the `repository <https://gitlab.com/librespacefoundation/satnogs/satnogs-db>`_::
2017-03-13 11:15:06 -06:00
2017-10-02 06:55:43 -06:00
$ git clone https://gitlab.com/librespacefoundation/satnogs/satnogs-db.git
2017-03-13 11:15:06 -06:00
Set up the virtual environment. On first run you should create it and link it to your project path.::
$ cd satnogs-db
$ mkvirtualenv satnogs-db -a .
Set your environmental variables::
$ cp env-dist .env
2017-03-13 11:15:06 -06:00
Activate your python virtual environment::
$ workon satnogs-db
Install local development requirements::
$ (satnogs-db)$ pip install -r requirements-dev.txt
2017-03-13 11:15:06 -06:00
#. **Database**
Create, setup and populate the database with demo data::
(satnogs-db)$ ./manage.py initialize
#. **Run it!**
Just run it::
(satnogs-db)$ ./manage.py runserver
Your satnogs-db development instance is available in localhost:8000. Go hack!