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