For this test I used Fast API for the backend and Next JS (13.3).
- The backend will be running on port 8081 (localhost)
- The frontend will be running on port 3000 (localhost)
cd backend
JWT_SECRET=JWT_SECRET_EXAMPLE
JWT_ALGORITHM=HS256
python3 -m venv venv && source venv/bin/activate
pip install -r requirements.txt
python main.py
cd frontend
npm install
npm run dev
- When installing
node_modules
, there can commonly be problems installing the packages either due to cache or incomplete downloads due to internet connection problems.
It can be solved by deleting the node_modules
folder, and downloading them again:
rm -rf node_modules