Login APIs using MongoDB and Flask
- Modify the DB name in config.py located inside server which you are going to use/connect
- Modify the DB connection URI as well, make sure MongoDB server is running on specified port
- Change the configuration for Development or Production by setting:
$ export APP_SETTINGS="server.config.DevelopmentConfig"
- Set a secret key
$ export SECRET_KEY="change_me"
- Execute following to create the DB schema
$ python triplespades.py create_db
$ python triplespades.py runserver
Access the application at the address http://localhost:5000/