https://github.com/vaishnavi-0310/ci-cd-node-app
CI/CD Node App - GitHub Actions & Docker
https://github.com/vaishnavi-0310/ci-cd-node-app
cicd docker docker-compose docker-image express-js git github github-actions nodejs npm
Last synced: 3 months ago
JSON representation
CI/CD Node App - GitHub Actions & Docker
- Host: GitHub
- URL: https://github.com/vaishnavi-0310/ci-cd-node-app
- Owner: vaishnavi-0310
- Created: 2025-10-27T11:03:23.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-10-27T12:24:26.000Z (8 months ago)
- Last Synced: 2026-01-03T11:30:50.866Z (6 months ago)
- Topics: cicd, docker, docker-compose, docker-image, express-js, git, github, github-actions, nodejs, npm
- Language: JavaScript
- Homepage:
- Size: 42 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CI/CD Node App - GitHub Actions & Docker
**Author:** Vaishnavi Chikhale
**Date:** 2025-10-27
---
## Description
This is a Node.js application with a basic CI/CD pipeline using **GitHub Actions** and **Docker**.
The pipeline automatically builds, tests, and pushes the Docker image to Docker Hub.
---
## Objective
Set up a basic CI/CD pipeline to automate the process of building, testing, and deploying a Node.js application locally.
---
## Tools
- Node.js
- Jest
- Docker
- Docker Hub
- GitHub Actions
- VS Code / Local Machine
---
## What I Did
- Created a simple Node.js app (`app.js`) with Express.
- Wrote unit tests using Jest (`tests/app.test.js`).
- Created a `Dockerfile` and `docker-compose.yml` to containerize the app.
- Pushed the app to GitHub repository (`ci-cd-node-app`).
- Configured GitHub Actions workflow:
- Install dependencies → Run tests → Build Docker image → Push to Docker Hub.
- Added GitHub Secrets for Docker Hub login (`DOCKERHUB_USERNAME` & `DOCKERHUB_TOKEN`).
- Pulled Docker image locally to verify deployment.