Instructions to set up and run the backend (FastAPI) and frontend (React with Vite) for DishCraft.
Ensure you have the following installed:
- Navigate to the backend directory:
cd backend - Install dependencies:
pip install -r requirements.txt
- Run the FastAPI server:
uvicorn server:app --reload
- API Documentation: Open the following URLs in your browser:
- Swagger UI: http://127.0.0.1:8000/docs
- ReDoc: http://127.0.0.1:8000/redoc
- Navigate to the frontend directory:
cd frontend/dishcraft - Install dependencies:
npm install
- Run the frontend development server:
npm run dev
- Access the app: Open http://localhost:5173 in your browser.
To run both the backend and frontend simultaneously:
- Open two terminal windows
- Run the backend server:
cd backend uvicorn server:app --reload - Run the frontend server:
cd frontend/dishcraft npm run dev
Now, your DishCraft app should be fully functional! 🚀