C4G Food Bank Client Survey
This is a Python Django Survey application, which is dockerized to ensure consistency between systems.
- Docker
- Docker-compose
- GNU Make
- If a file will not save without root access run
sudo chown -R $USER .
- Python
- Nginx
- Make
- Docker
- Postgres
- Local Frontend address: http://localhost
- Local Backend address: http://localhost:8000
- Swagger docs: http://localhost:8000/openapi/
- Local Admin Portal: http://localhost:8000/admin/
- Survey Routes: http://localhost:8000/survey/{campaign_id}/{site_id}
make build
- Runs through the applications entire setup processmake init
- Creates the containers and installs dependenciesmake start
- Starts a detached instance of the containersmake lint
- Lints the backendmake init
- Creates the containers and installs dependenciesmake test
- Tests the backendmake migrate
- Runs any outstanding database migrationsmake migrations
- Creates any new model change migrationsmake stop
- Stops and removes the containersmake install
- Installs python dependenciesmake logs
- View django app docker logsmake seed
- Seeds database
app/campaigns/models
- Holds the campaign specific modelsapp/campaigns/admin
- Registers the models to admin portalapp/campaigns/signals
- Signals to handle post save model updatesapp/views/signals
- Holds the route definitionsapp/food_bank_survey/settings
- Holds the django app's settingsapp/food_bank_survey/url
- API routes are registeredapp/django_static
- Holds the static content for the admin and swagger sitesapp/scripts
- Holds script files (Uses the runscript package)app/users
- Holds the user and agency site files
Filtering
Campaign Question Ordering
Response Exporting
The delimiter is a|
Question, Campaign, Answer Choice Importing
The delimiter is a|