Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.
/ monuments-app Public archive

GIS app with Django backend and Backbone.js/Marionette.js/OpenLayers frontend

Notifications You must be signed in to change notification settings

D3kion/monuments-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Deployment instructions:

Backend:

  1. 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"
    
  2. Create env and install dependecies

    $ cd backend
    $ pipenv --three
    $ pipenv shell
    $ pipenv install
    
  3. 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
    
  4. Test (optional)

    $ coverage run --branch --source=api,core ./manage.py test
    $ coverage report
    

And go to Admin panel | API

Frontend:

  1. Install dependencies
    $ cd frontend
    $ npm install
    
  2. Build
    $ npm run prod  # or dev
    

And go to Frontend

About

GIS app with Django backend and Backbone.js/Marionette.js/OpenLayers frontend

Resources

Stars

Watchers

Forks

Packages

No packages published