Skip to content

kavin0521/01-docker-nodejs-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Dockerized Node.js App

A simple Node.js + Express application containerized using Docker. This project demonstrates the fundamentals of Dockerizing a web application and follows best practices for Node.js projects.

📌 Features

  • Express.js web server
  • Docker container support
  • Health check endpoint
  • Production-ready project structure
  • Clean Git repository with .gitignore

🛠️ Tech Stack

  • Node.js
  • Express.js
  • Docker
  • Git
  • GitHub

📁 Project Structure

01-docker-nodejs-app/
│── app.js
│── package.json
│── package-lock.json
│── Dockerfile
│── .gitignore
└── README.md

🚀 Getting Started

Clone the repository

git clone https://github.com/kavin0521/01-docker-nodejs-app.git

Navigate to the project

cd 01-docker-nodejs-app

Install dependencies

npm install

Run the application

npm start

The application will be available at:

http://localhost:3000

🐳 Run with Docker

Build the Docker image:

docker build -t nodejs-devops-app .

Run the container:

docker run -d -p 3000:3000 --name my-node-app nodejs-devops-app

Stop the container:

docker stop my-node-app

🌐 API Endpoints

Method Endpoint Description
GET / Home page
GET /health Health check endpoint

📸 Screenshot

Add a screenshot of the application here later.


📚 What I Learned

  • Building an Express.js application
  • Dockerizing a Node.js application
  • Managing Git repositories
  • Using .gitignore correctly
  • Creating health check endpoints
  • Writing project documentation

👨‍💻 Author

Kavin

GitHub: https://github.com/kavin0521


📄 License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages