- 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
serverdirectory 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 migratefromserver/model. We are likely to run into an error complaining bout mysql client. Depends on your OS the solution may be installingmysqlclientor something else. - Once the mysql client has been installed, run
python -m flask db migrate && python -m flask db upgradefromserver/modelagain. (Should make sure the databasefoodDemptionDbexists in the db instance on port 3306). - Run
python server.pyto start the server. It should be running on port 8000. - Note, the
MYSQL_HOSTvariable now comes from the .env file. Set it accordingly.