Skip to content

francesjgonzales/python-flask-proj3-update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-flask-proj3-update

Run locally

flask --app app run

How to connect MongoDB

  1. Create a new cluster in MongoDB.
  2. Connect via MongoDb Compass GUI.
  3. Add password variable in .env
  4. Copy connection string from MongoDB to VS code.

MongoDB NoSQL database

  • in BSON format similar to JSON
  • allows frequent updates
  • performs faster performance and scale easily
  • Structure:
    1. Database # Cluster contains database
    2. Collections # Each database contains a number of collections
    3. Documents # Stores KEY and VALUE pair per unique ID

Encountered issues and how it was resolved

  1. SSL: CERTIFICATE_VERIFY_FAILED - added tlsCAFile=certifi.where() in connection string. documentation

Reload Flask with new code changes reflects

flask --app <app name> run --debug