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::
|
|
|
|
|
2017-09-08 09:42:21 -06:00
|
|
|
$ cp env-dist .env
|
2017-03-13 11:15:06 -06:00
|
|
|
|
|
|
|
Activate your python virtual environment::
|
|
|
|
|
|
|
|
$ workon satnogs-db
|
|
|
|
|
|
|
|
Install local development requirements::
|
|
|
|
|
2018-11-06 05:00:07 -07:00
|
|
|
$ (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!
|