Welcome to the covid19 wiki! In lieu of the outbreak of COVID-19, the Purpose of this project is to enable people with limited resources (senior citizens, specially abled, economically weak, et. al) to reach out to people ready to volunteer. Every request will be tagged basis type of request:
- CRITICAL - for life-critical requirements
- URGENT - for need of basic necessities (food/medicines)
- OTHERS - for anything else
Check out the LIVE version here - www.covidsos.org
About the Files:
- apis.py - This file contains the code for service created using Flask that runs all the APIs.
- data_fetching.py - This file contains all functions that request "Reading" from the MySQL database.
- database_entry.py - This file contains all functions that do "UPDATE" or "ADD/APPEND" options to MySQL database.
- auth.py - This file contains login authentication related functions (both for Volunteer as well as Admin/moderator)
- connections.py - This file contains functions that can be used to connect to different mySQL DBs (prod/staging) for both read and write purposes.
- partner_assignment.py - This file contains code related to request assignment to a volunteer.
- whatsapp_fn.py - WhatsApp related APIs/functions to be added here.
- settings.py - contains values of constants/configurations
For setting up the project:
- Download docker-compose
- "cd docker && docker-compose build && docker-compose up"
- You are good to go, just point your curl requests to localhost:5000. The server will automatically be reloaded every time you make a code change
- To manually execute sql use "docker exec -it bash" then use the username "test" and password "test" to drop into the docker mysql and use database covidsos
- Raise an issue if you face any problems