Sign inSign up

aryanaroraa/simple-node-todo-app

By aryanaroraa

•Updated 1 day ago

Simple Node.js Todo application containerized with Docker for learning Docker fundamentals.

Image
Languages & frameworks
Developer tools
Web servers
0

37

aryanaroraa/simple-node-todo-app repository overview

⁠Simple Node.js Todo App

A simple Todo application built with Node.js and containerized with Docker.

⁠Tech Stack

  • Node.js
  • Express
  • EJS
  • Docker

⁠Docker

The application is packaged into a Docker image using a multi-stage Docker build.

⁠Run
docker pull aryanaroraa/simple-node-todo-app:1.0

docker run -d \
  --name node-todo-app \
  -p 3000:3000 \
  aryanaroraa/simple-node-todo-app:1.0

Then open http://localhost:3000.

⁠Project Structure

.
├── views/
├── public/
├── package.json
├── package-lock.json
├── index.js
└── Dockerfile

⁠Dockerfile

The Dockerfile uses a multi-stage build to install dependencies in a builder stage and copy the required files into a smaller runtime image.

⁠What This Project Demonstrates

  • Creating a Dockerfile for a Node.js application
  • Multi-stage Docker builds
  • Installing Node.js dependencies
  • Docker port mapping
  • Building and running Docker containers
  • Publishing a Docker image to Docker Hub

⁠Image

aryanaroraa/simple-node-todo-app:1.0

Tag summary

Content type

Image

Digest

sha256:176b56d69…

Size

82.3 MB

Last updated

1 day ago

docker pull aryanaroraa/simple-node-todo-app:1.0