A basic MERN CRUD app with an Express/MongoDB backend and a Vite React frontend.
- Install dependencies:
npm run setup- Create
backend/.env:
PORT=5000
MONGO_URI=mongodb://127.0.0.1:27017/mern_crud
CLIENT_URL=http://localhost:5173- Start the app:
npm run devBackend: http://localhost:5000
Frontend: http://localhost:5173
GET /api/itemsGET /api/items/:idPOST /api/itemsPUT /api/items/:idDELETE /api/items/:id