A simple Express app that demonstrates how to containerize an application using Docker.
- Simple REST API (
GETandPOST) - Uses dependencies from
package.json - Dockerized for easy deployment
- Node.js + Express
- Docker
# 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-worldcurl http://localhost:3000/
curl -X POST -H "Content-Type: application/json" \
-d '{"task": "Learn Docker"}' http://localhost:3000/todos
curl http://localhost:3000/todos