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

54 lines
1.2 KiB
ReStructuredText
Raw Normal View History

2017-03-13 11:15:06 -06:00
VirtualEnv Installation
=======================
#. **Requirements**
2017-03-13 11:15:06 -06:00
You will need python, python-virtualenvwrapper, pip and git
2017-03-13 11:15:06 -06:00
#. **Get the source code**
2017-03-13 11:15:06 -06:00
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
$ cd satnogs-db
#. **Build the environment**
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.::
$ mkvirtualenv satnogs-db -a .
#. **Configure settings**
2017-03-13 11:15:06 -06:00
Set your environmental variables::
$ cp env-dist .env
2017-03-13 11:15:06 -06:00
#. **Install frontend dependencies**
Install dependencies with ``npm``::
$ npm install
Test and copy the newly downlodaded static assets::
$ ./node_modules/.bin/gulp
#. **Run it!**
2017-03-13 11:15:06 -06:00
Activate your python virtual environment::
$ workon satnogs-db
Just run it::
2017-03-13 11:15:06 -06:00
(satnogs-db)$ ./bin/djangoctl.sh develop .
2017-03-13 11:15:06 -06:00
#. **Populate database**
2017-03-13 11:15:06 -06:00
Create, setup and populate the database with demo data::
(satnogs-db)$ ./bin/djangoctl.sh initialize
2017-03-13 11:15:06 -06:00
Your satnogs-db development instance is available in localhost:8000. Go hack!