Project description and pictures: https://devpost.com/software/bread-cramps
VIDEO: https://youtu.be/DlYwLdJ8bWQ
DEPLOYED LINK: Is now offline, thanks for checking it out! :)
Timea Subicz, Mate Subicz, Benjamin Tako
-
clone repo
-
one terminal - client, frontend
cd frontendpnpm installandpnpm dev- if no pnpm yet: install node -> install pnpm with npm
-
other terminal - server, backend
cd backend- On first install:
- create virtual env for packages:
python -m venv .venv. - download required packages after activation with
pip install fastapi uvicorn(and everything else that comes up at runtime)
- create virtual env for packages:
- Then activate venv: for bash terminal:
source ./.venv/Scripts/activate(or on older versions "source ./.venv/bin/activate"), for powershell terminal:.venv\Scripts\Activate.ps1 - check if you have done it correctly: bash style:
which python, powershell style:Get-Command python=> You should see that python is ran from .venv folder - run
uvicorn main:app --reload
- Change .env in frontend to PROD
- Change main.py to PROD
- build frontend with
pnpm run build - run backend with
uvicorn main:app --host 0.0.0.0 --port 8000 - deploy with
ngrok http 8000
After you have succesfully ran the app manually and have all the stuff required, download the Terminal Keeper extension that uses sessions.json, it will load up all the required terminals for you automatically and start both the frontend and backend when you open the project.