- Install dependencies.
python -m venv env
source env/bin/activate
pip install requirements.txt
- Create new MongoDB database using the Mongo Console or MongoDB Compass with
bread
and keep the initial collection name asusers
andsticks
- Create an admin user
use bread db.createUser({ user: "myUserName", pwd: passwordPrompt(), roles: [ { role: "readWrite", db: "bread" }, { role: "read", db: "reporting" } ] })
- Create a file
keys/mongo_keys.json
and follow the syntax described inkeys/mongo_keys.json.sample
. Write the collection names as the ones declared above.
- Create
keys/keys.json
similar tokeys/keys.json.sample
and write yourapp_key
,app_secret
,oauth_token
,oauth_token_secret
in the same format. - You can add multiple keys in
keys.json
by following array declaration rules in JSON.
- After installing dependencies, run the Flask server using the command:
python main.py
The backend engine will be available at http://localhost:5000/ (5000 is the default port, might change according to the system.)