- Make sure to open the client folder in Android Studio Code (not the entire repo)
- For Compatibility with CameraX Library, be sure to use SDK API 29
- Make sure docker is installed on your machine.
- from
server
directory rundocker-compose up
. verify db is listenning on port 3306 - Make sure python is installed. First install the dependencies
pip install flask flask_sqlalchemy flask_migrate pyjwt
- Try to execute
python -m flask db migrate
fromserver/model
. We are likely to run into an error complaining bout mysql client. Depends on your OS the solution may be installingmysqlclient
or something else. - Once the mysql client has been installed, run
python -m flask db migrate && python -m flask db upgrade
fromserver/model
again. (Should make sure the databasefoodDemptionDb
exists in the db instance on port 3306). - Run
python server.py
to start the server. It should be running on port 8000. - Note, the
MYSQL_HOST
variable now comes from the .env file. Set it accordingly.