Skip to content

Starter app for connecting flask app with mongo db hosted on Back4app (free DB)

Notifications You must be signed in to change notification settings

membriux/flask-mongodb-back4app-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Mongodb (hosted on Back4App) Starter

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

demo1

Before you Clone this repo

  1. Create back4app.com account and create a sample database and collection
  2. In back4app.com, obtain your credentials for the parse_service.py from these places:
    • API Server URL
      • APIKEY
    • App ID and Rest API Key
      • App ID and api key
  3. Copy these values into parse_service.py

Run it!

  1. Install requirements pip install -U flask requests
  2. Run it! python app.py

Test it out!

curl --location 'http://localhost:5000/food' \
--header 'Content-Type: application/json' \
--data '{
    "food": "sushi"
}'

Documentation for Back4app Rest API

Want to do more? Here is the offical Rest API documentation for Parse: https://docs.parseplatform.org/rest/guide/

About

Starter app for connecting flask app with mongo db hosted on Back4app (free DB)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages