indrz-be icon indicating copy to clipboard operation
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

GitHub stars GitHub Issues GitHub release license Twitter

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.

  1. Visit indrz/settings/and copy the example-env.env file and save as .env file in root folder.
  2. Get Docker .env environment varialbles ready, located in the root folder allong with the docker-compose.yml :
  3. Build all required Docker images
    make build
    
  4. Run application
    make run
    
  5. Run database setup that will create postgresql schemas and set db user search_path
    make setup_indrz_db
    
  6. Load demo data for testing
    make load_demo_data
    
  7. 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

Supported and built by:

Contact: Michael Diener

www.gomogi.com