Starter app for connecting flask app with mongo db hosted on Back4app (free DB)
Why create this template?
- Back4app provides FREE mongodb!
- There are no python resources on how to create a backend service that connects to Back4app (until this one)
Sample Demo
- Create back4app.com account and create a sample database and collection
- In back4app.com, obtain your credentials for the parse_service.py from these places:
- Copy these values into
parse_service.py
- Install requirements
pip install -U flask requests
- Run it!
python app.py
Test it out!
curl --location 'http://localhost:5000/food' \
--header 'Content-Type: application/json' \
--data '{
"food": "sushi"
}'
Want to do more? Here is the offical Rest API documentation for Parse: https://docs.parseplatform.org/rest/guide/