- cd into the backend folder
cd backend
- In order to enusre that everone has the same dependencies installed, use the already generated Python virtual enviroment
source pyenv/bin/activate
- Install requirements
pip install -r requirements.txt
1) If you need to update requirements.txt (if you added a new dependencie)
```
pip freeze requirements.txt
```
Please do this in the location where the requirements.txt is. This means that when you run the existing command it should replace the old requirements.txt
-
(Optional), In order for the frontend and backend to communicate you must setup NGROK.
- Download NGROK and create an account https://ngrok.com/
- Connect to NGROK
./ngrok authtoken <MY_TOKEN>
You can find your token on your NGROK dashboard 3) Start NGROK on port 5000 ``` ./ngrok http 5000 ``` 4) In the NGROK terminal there should be a http link, use this and replace the base url in the following location
cd project-cipher/plannit/src/api/planitApi.js
#### NOTE THAT THE NGROK URL EXPIRES EVERY 8 HOURS
-
While your python virtual envirment is running,
flask run
This will start the flask app
-
(Optional) Once you are done and no longer want to work you can exit the python virtual enviroment,
deactivate
- Cd into the planit folder
cd planit
- Install the dependencies
npm install
- Run the application
sudo npm start