indrz-be
indrz-be copied to clipboard
Open source indoor mapping, routing for orientation and wayfinding. Mirrored from https://gitlab.com/indrz.
INDRZ API (a.k.a the backend)
Gitlab hosts the main repo Mirror repo is at Github
This is the indrz API backend code repository.
documentation here indrz Docs
Quick Start Backend Setup
We are working on making the setup easier, with an all docker development environmentment. The production deployment aswell will be an all docker deployment.
- Visit
indrz/settings/
and copy theexample-env.env
file and save as.env
file in root folder. - Get Docker
.env
environment varialbles ready, located in the root folder allong with thedocker-compose.yml
: - Build all required Docker images
make build
- Run application
make run
- Run database setup that will create postgresql schemas and set db user search_path
make setup_indrz_db
- Load demo data for testing
make load_demo_data
- Collect static file
make collectstatic
Manage Postgres database
If you have issues with the db setup_indrz_db
psql -h localhost -U POSTGRES_USER -p POSTGRES_EXT_PORT -l
docker exec -it indrz_db bash
su postgres
dropdb indrzcloud
createdb -O indrzcloud indrzcloud
psql -c "create extension postgis" -d indrzcloud
psql -c "create extension pgrouting" -d indrzcloud
psql -c "CREATE SCHEMA IF NOT EXISTS django AUTHORIZATION indrzcloud" -d indrzcloud
psql -c "CREATE SCHEMA IF NOT EXISTS geodata AUTHORIZATION indrzcloud" -d indrzcloud
psql -c "ALTER ROLE indrzcloud IN DATABASE indrzcloud SET search_path TO django,geodata,public;" -d indrzcloud
User Make command
Commands help
make
- or -
make help
Collect Django static files
make collectstatic
Build Docker images
# Build Indrz image only
make build-indrz
# Build all
make build
Stop application
make stop
Application releases deployment
make deploy
Pull code from Git
make pull
Tech
- Python (3.x)
- Django – Web Framework Backend
- Django Rest Framework – Django Rest Web Framework our API
- PostGIS – Spatial Database extension to Postgresql
- PGRouting - Routing extension to PostGIS and Posgresql
- Postgresql – Database
- Geoserver – Web map server to serve and create, maps and data
- Ubuntu server - Server
- Docker, docker-compose - Docker, Docker-Compse
Supported and built by:
Contact: Michael Diener