Skip to content

CS145-Capstone-Team-5/Crumbster

Repository files navigation

Crumbster

Crumbster is a household food waste tracking system that aims to let families better plan the food that will buy.

Dependencies

Note: To be updated.

  • Mobile App
    • Node.js
    • NPM
  • Server
    • Python3
    • Flask
    • Flask_RESTful
    • firebase_admin
    • APScheduler

Setting up the notifications (FCM)

  1. Obtaining the Service Account Key
    1. In the Firebase Project's console, open Settings > Service Accounts
    2. Click Generate New Private Key, and Generate Key
  2. Store the obtained key, copy the path to it and replace PATH-TO-SERVICE-ACCOUNT-KEY in notifs.py
  3. Copy one's token (obtained from running the app) and replace REGISTRATION-TOKEN in notifs.py

Running the server (Windows)

  1. Check the IP address of the device (i.e. the one that will host the server)
  2. In the root directory, enter the following on the terminal:
  3. set FLASK_APP=CrumbsterAPI 
    
    flask --app CrumbsterAPI run --host=[IP_ADDRESS]
    

Running the mobile app

Note: To be updated.