Skip to content

A simple Express app that demonstrates how to containerize an application using Docker.

Notifications You must be signed in to change notification settings

younesmod/docker-nodejs-hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Image Build and Push Docker Images Scan Docker Image

🐳 Dockerized To-Do API / Hello World App

A simple Express app that demonstrates how to containerize an application using Docker.

🚀 Features

  • Simple REST API (GET and POST)
  • Uses dependencies from package.json
  • Dockerized for easy deployment

🧰 Tech Stack

  • Node.js + Express
  • Docker

🧩 Setup

# Clone repo
git clone https://github.com/younesmod/docker-nodejs-hello-world.git
cd docker-nodejs-hello-world

# Build Docker image
docker build -t docker-nodejs-hello-world .

# Run container
docker run -p 3000:3000 docker-nodejs-hello-world

🧪 Example API Calls

curl http://localhost:3000/

curl -X POST -H "Content-Type: application/json" \
     -d '{"task": "Learn Docker"}' http://localhost:3000/todos

curl http://localhost:3000/todos

About

A simple Express app that demonstrates how to containerize an application using Docker.

Topics

Resources

Stars

Watchers

Forks

Packages