A simple Node.js server with CRUD operations using local storage.
docker build -t node-server-app .docker run -p 3000:3000 node-server-appThe server will be available at http://localhost:3000
POST /items- Create a new item (JSON body)GET /items- Get all itemsGET /items/:id- Get a specific itemPUT /items/:id- Update an item (JSON body)DELETE /items/:id- Delete an item
Data is stored in data.json inside the container.
- Ensure Docker is running.
- Port 3000 should be free on your host.