-
Notifications
You must be signed in to change notification settings - Fork 1
0. Getting Started
David Sanabria edited this page Apr 19, 2022
·
24 revisions
- Clone the Github repo (
git clone https://github.com/michigan224/Interesting-Co.git interesting-co) - Open up a new bash terminal with
backendas the current directory (cd interesting-co/backend) - Initialize a python virtual environment (
python3 -m venv env) - Activate your python virtual environment (
source env/bin/activate) - Install the necessary dependencies (
pip install -r requirements.txt) - Run the server (
./runorFLASK_APP=app.py FLASK_ENV=development flask run) A copy of the server should now be running locally at localhost:5000.
The server is currently hosted at https://rememri-instance-5obwaiol5q-ue.a.run.app
To deploy any changes to the hosted server:
- navigate to the backend folder (
cd interesting-co/backend) - deploy a Cloud Run build (
gcloud builds submit)
Note: To deploy these changes, you must have gclouds CLI tool set up and working properly. Your must also have a
key.jsonfile containing the credentials for Firebase.
You can follow this guide to set it up from scratch.
-
Mapbox
- We will be using Mapbox to display pins on a 2D map.
-
ARCore
- We will use ARCore to display images in the camera view using augmented reality.
- geopy
- We will be using the GeoPy API to calculate distances between points.
- flask
- Flask will be used to handle the REST API.
- firebase_admin
- Library to connect to the firebase database.
- PyJWT
- We will use JWT to handle generating and authenticating tokens.
Our backend will be built by us as described in section 2. APIs and Controller