You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Next.js + Node.js CRUD With Real-Time Updates
This project contains:
- `frontend`: a Next.js app for creating, viewing, editing, and deleting items
- `backend`: a Node.js API that exposes CRUD endpoints and streams real-time updates with Server-Sent Events
## Run locally
Install dependencies from the repository root:
```bash
npm install
```
Start the backend in one terminal:
```bash
npm run dev:backend
```
Start the frontend in another terminal:
```bash
npm run dev:frontend
```
## Ports
- Frontend: `http://localhost:3000`
- Backend: `http://localhost:4000`
If needed, override the frontend API URL with:
```bash
NEXT_PUBLIC_API_BASE_URL=http://localhost:4000
```
# Real-time_Update