Near Green is a web application that aims to make healthy food accessible to the city of Philadelphia.
- Single Page Application (SPA) where all requests are served by Django Rest Framework (DRF) and consumed by Vue.js
- Docker
- docker-compose
- Yarn
- Vue Cli 3
$ docker-compose -f docker-compose.dev.yml build
$ docker-compose -f docker-compose.dev.yml up
$ yarn serve
$ docker-compose -f docker-compose.prod.yml build
# The first time, seed the database, after that don't include that env var
$ SEED_DB=true SECRET_KEY=secretkey docker-compose -f docker-compose.prod.yml up
$ source deploy_frontend.sh
/
Index, displays all stores
/api/stores
Display all stores
/api/stores/<storeid>
Display a specific store
/api/register
Register a profile
/api/auth/login
Login a user
/api/auth/logout
Logout a user