-
Open a terminal and navigate to the server directory:
cd server -
Create and activate a Python virtual environment:
python3 -m venv venv source venv/bin/activate -
Install the required dependencies:
pip install -r requirements.txt
-
Start the FastAPI server with Uvicorn:
uvicorn main:app --reload
-
Open a new terminal and navigate to the client directory:
cd client -
Install the dependencies:
npm install
-
Start the development server:
npm run dev
The frontend will be available at http://localhost:3000 and the backend at http://localhost:8000 by default.
- If you see CORS errors, ensure you are using the
/apiprefix for all frontend API calls and that the Next.js proxy is configured. - If you get 401 errors, make sure you are logged in and the token is present in localStorage.
- If you change backend or frontend ports, update the proxy in
client/next.config.tsaccordingly.