Explore demographics across neighborhoods & subway lines.
Flask, SQLAlchemy, Flask-Migrate (Alembic), Postgres, PostGIS, GeoAlchemy
- Copy
.env.example
to.env
- Run a local instance of Postgres (sorry I haven't done docker-compose yet)
- Start a local environment & run
pip install -r requirements.txt
- Run the migrations with
flask db upgrade
- Start the development server with
flask --debug run --port 8080
- Check out http://localhost:8080/ to see if it's working
There are better ways to load data into the database, but this is the quick-n-dirty version.
Once you've run the data load once, these routes will stop working with "Data already exists for this model!"