- Python 3.6 or above
- Node 16 or above
Make a copy of the .env.sample
files present in the server
and client
folders and name them as .env
.
Replace the content with your appropriate values.
The .env
file in the client
folder will contain the Vite server url. This can be left unchanged.
The .env
file in the server
folder will contain the database url and the secret key for the JWT token. The secret key for the JWT token can be left unchanged for development purposes, but the database url will need to be changed. Instructions for creating a database url with MongoDB Cloud be are given below. You may also need to change the FLASK_HOST
key to be 0.0.0.0
if you are running the mobile app on a physical device on the same network.
Depending on your Python install, you may need to use python3
and pip3
instead of python
and pip
respectively.
-
To run the Flask server:
Change directory to the server folder:cd server
Create a venv in the server folder:python -m venv venv
Activate the virtual environment
Install the dependencies:pip install -r requirements.txt
Run the server:python app.py
-
To run the VueJS client:
Change directory to the client folder:cd client
Install the dependencies:npm install
Run the application:npm run dev
- Go to MongoDB Atlas and create an account.
- Create a new project and a new cluster.
- Create a new database named whatever you want.
- Click on the connect button and select the appropriate options. (Note: when replacing
<password>
, make sure to use your user password and not your account password) - Copy the connection string and paste it into the
MONGO_URI
key in the.env
file in theserver
folder. - Set the
MONGO_DB_NAME
in the.env
file in theserver
folder to the name of the database you created in step 3.
- Go to Yelp account and create/login to an account
- Enter in the necessary information into the fields
- Copy the API key given and paste it into the
YELP_API_KEY
key in the.env
file in theserver
folder
- Go to [Google Maps Platform] (https://console.cloud.google.com/getting-started) > Credentials page
- On the Credentials page, click Create credentials > API key
- Copy the API key given and paste it into the 'GOOGLE_MAAPS_API_KEY' key in the '.env' file in the 'server' folder
- Restrict the API key to the domain
- open 3 terminals
- on the first terminal cd into the server ex. cd C:\Users\NATO1\OneDrive\Desktop\java\Git\ywsos2023\server
- activate the venv on this terminal ----- venv\scripts\activate
- run the server on this terminall ----- python app.py after cd server
- on the second terminal cd into the client
- run the client on this terminal --- npm run dev
- on the third terminal cd into tests
- activate venv
- launch the select test