Skip to content

chronhq/backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chron Backend

Build Status Requirements Status Codacy Badge

Getting Started

For API authentication to work, a Firebase service account key is required. Create a new project and obtain a key as described in the docs, saving it as config/firebase.json.

Docker

# Clone the repo
git clone https://github.com/chronhq/backend
cd backend

# Create env files, remember to update accordingly
cp django.env.sample django.env
cp postgres.env.sample postgres.env
cp mbtiles.env.sample mbtiles.env
cp auth.env.sample auth.env  # from console.firebase.com

# Build and start the docker containers
make run

# Navigate to http://localhost/
# 502 error means postgres is starting, try again in a few seconds

Local

# Clone the repo
git clone https://github.com/chronhq/backend
cd backend

# Create and activate virtual environment
virtualenv venv
source venv/bin/activate # *nix
venv/Scripts/activate # win
pip install -r config/requirements.txt

cd project
python manage.py runserver # must be executed from the project directory

Production Setup

make run_prod can be used to configure the containers for a production setup.

About

Backend for database. Python, Django, PostGIS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published