-
Create db
$ psql -U postgres =# CREATE USER django_user WITH PASSWORD 'supersecret'; =# ALTER USER django_user CREATEDB; =# ALTER ROLE django_user SUPERUSER; =# CREATE DATABASE django_db WITH OWNER django_user; =# \q $ psql -U postgres -d django_db -c "CREATE EXTENSION postgis"
-
Create env and install dependecies
$ cd backend $ pipenv --three $ pipenv shell $ pipenv install
-
Configure and run
$ mkdir public/static $ cp mysite/local_settings.example.py mysite/local_settings.py # and configure this $ python manage.py migrate $ python manage.py initdb $ python manage.py compilemessages -l ru $ python manage.py createsuperuser $ python manage.py runserver
-
Test (optional)
$ coverage run --branch --source=api,core ./manage.py test $ coverage report
And go to Admin panel | API
- Install dependencies
$ cd frontend $ npm install
- Build
$ npm run prod # or dev
And go to Frontend