This is a modern web application consisting of a React (Vite) frontend and a FastAPI backend with MongoDB.
frontend/: A React application built with Vite (npm).backend/: A FastAPI backend utilizing a Python virtual environment and an organized file app code structure.
Open a terminal and navigate to the backend directory:
cd backendCreate a virtual environment:
python -m venv venvActivate the virtual environment:
- On Windows:
.\venv\Scripts\activate - On Mac/Linux:
source venv/bin/activate
Install dependencies:
pip install -r requirements.txtRun the backend server:
uvicorn app.main:app --reloadThe server will start at http://127.0.0.1:8000.
Open a new terminal and navigate to the frontend directory:
cd frontendInstall the dependencies:
npm installStart the development server:
npm run devYour React app will typically be available at http://localhost:5173.