This project has a frontend (React) and a backend (Node.js/Express). Both need to be run in separate terminals.
git clone https://github.com/rickeymaharjan/recipe-app.git
cd recipe-app
cd frontend
npm install
cd ../backend
npm install
Create a .env file in the backend folder with this format:
PORT=3000
MONGODB_URI=mongodb://localhost:27017/your-db
JWT_SECRET=your-jwt-secret
Create another .env file in the frontend folder with this format:
VITE_BACKEND_URL=http://localhost:3000
cd backend
npm run dev
cd frontend
npm run dev