Skip to content

deepakporwal/node-server-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Server App

A simple Node.js server with CRUD operations using local storage.

Build the Docker Image

docker build -t node-server-app .

Run the Container

docker run -p 3000:3000 node-server-app

The server will be available at http://localhost:3000

API Endpoints

  • POST /items - Create a new item (JSON body)
  • GET /items - Get all items
  • GET /items/:id - Get a specific item
  • PUT /items/:id - Update an item (JSON body)
  • DELETE /items/:id - Delete an item

Data is stored in data.json inside the container.

Troubleshooting

  • Ensure Docker is running.
  • Port 3000 should be free on your host.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors