This backend is a Flask application for processing OpenStreetMap (OSM) data in the DeFlock SD workflow. It includes user authentication, database initialization, and web endpoints for interacting with processed tile data.
- Python 3.8+
- pip
- virtualenv (recommended)
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt# Initialize the db
flask --app flaskr init-db
# Run the development server
flask --app flaskr runflaskr/- application package__init__.py- app factory and configurationauth.py- authentication routes and helpersdb.py- SQLite DB connections and migrationsschema.sql- database schema definitiontemplates/- Jinja2 templates
instance/- instance folder with SQLite DB
nginx_flask_8587.confis an example Nginx configuration for production reverse proxy.- Use
docker-compose.ymlfor containerized local development.