Skip to content

britiger/simple_tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple_tracking

config

  • copy config.sample to config and edit file

setup DB

  • Create user and database
    • Enable postgis
  • Execute the create_db.sql
psql -c "CREATE USER simple_tracking LOGIN;"
psql -c "CREATE DATABASE simple_tracking OWNER = simple_tracking;"

export PGDATABASE=simple_tracking
psql -c "CREATE EXTENSION postgis;"
psql -f create_db.sql

prepare app

  • Download css and javascript
  • Update and compile translations
cd webapp
./download_js.sh
./translate.sh

start app

start using flask

  • this is for development
cd webapp
./start.sh

In Production using docker

  • Build image:
docker build --tag simple_tracking .
  • Test image using the config
docker run --rm --name tracking_test -ti --env-file=config -p5000:5000 simple_tracking
  • webbrowser: http://127.0.0.1:5000
  • Deploy docker image with management you like or run it in deamon mode