Connecting trainers with trainees around the world, one workout at a time.
Important! This is a senior project. We are not able to take outside help for this repo so pull requests from outside the group will not be accepted. Thank you for understanding.
Vitality, an all in one platform allowing users to connect to nearby trainers, schedule meetings, share workouts, and encourage healthy dieting.
Primarily written in Python 3.7.x, while using Flask as our webserver and PyMongo to connect to our Vitality database.
Please look at the requirements.txt
file found in the root of our repo for the complete list of requirements.
-
Online:
-
Offline:
-
Install Python 3.7.x or greater. https://www.python.org/downloads/
- Make sure to install Pip (a checkbox when installing) with python.
-
Install MongoDB: https://www.mongodb.com/try/download/community
-
Open a terminal and within the root folder of the vitality repo, next to
requirements.txt
runpip3 install -r requirements.txt
.sudo
might be needed at the beginning of the command if you need root privileges.
-
Make sure Mongod service is running locally and reachable.
-
Copy
.env.example
to a.env
file and update the variables within the file.- An example would be:
SECRET_KEY=ThisSecretKeyThatShouldntBeShown FLASK_APP=vitality FLASK_ENV=development MONGO_URI=mongodb://localhost:27017 MONGO_DATABASE=flask GOOGLE_MAPS_KEY=
-
Double click
start_flask.bat
(windows) orstart_flask.sh
(linux/mac)- Alternatively type
./start_flask.sh
(linux/mac) - Or type
.\start_flask.bat
(windows)
- Alternatively type
-
Go to browser and type http://localhost:8080/
-
Proof of concept. Everything is subject to change.