Instructor: Prof. Akhtar
Contributors: Michael Trzaskoma, Gregory Salvesen, Zakaria Khan, and Hui (Henry) Chen
- install the required libraries
npm install
- Create a Google API: here
- Sign up firebase: here
- Note:
a. Use your own API key. Never share with anyone else.
b. Usehost.exp.exponent
as the “Package name”(Android) or "Bundle ID"(IOS) in the Google Cloud Console, otherwise you will faceError 400: redirect_uri_mismatch
.
c. Useopenssl rand -base64 32 | openssl sha1 -c
to generate openssl key
d. Place "google-services.json" under android directory - Clear the Metro's cache:
yarn start --reset-cache
- AWS EC2 - SSH method: here
Backend
# install dependency
pip3 install -r requirements.txt
# add flask app to the environment variable/ path
export FLASK_APP=flask_app.py
# run the flask with port 8080 publically
flask run --host=0.0.0.0 --port=8080
# activate environement for debugging
source csci426/bin/activate
React Native
cd <directory of your project>
npm install
npm start
# or
npm run android
# or
expo start