A simple Express.js application demonstrating CRUD operations using in-memory storage. Also support real-time updates using Supabase.
- Install dependencies:
npm install- Start the server:
npm startFor development with auto-reload:
npm run dev- GET
/api/items- Get all items - GET
/api/items/:id- Get a single item - POST
/api/items- Create a new item - PUT
/api/items/:id- Update an item - DELETE
/api/items/:id- Delete an item
curl -X POST http://localhost:3000/api/items \
-H "Content-Type: application/json" \
-d '{"name": "New Item", "description": "Description here"}'curl http://localhost:3000/api/itemscurl -X PUT http://localhost:3000/api/items/1 \
-H "Content-Type: application/json" \
-d '{"name": "Updated Item"}'curl -X DELETE http://localhost:3000/api/items/1