This is a simple Node.js web application that demonstrates an end-to-end CI/CD pipeline using GitHub Actions and Docker, with deployment on an AWS EC2 Ubuntu instance.
- Node.js
- Docker
- GitHub Actions
- AWS EC2 (Ubuntu)
nodejs-demo-app/ βββ app.js # Main Node.js application file βββ package.json # Node dependencies βββ Dockerfile # Docker instructions βββ .github/ βββ workflows/ βββ main.yml # CI/CD GitHub Actions workflow
# Log in to Docker
docker login
# Pull the latest image
docker pull your-dockerhub-username/nodejs-demo-app:latest
# Run the container
docker run -d -p 3000:3000 --name nodeapp your-dockerhub-username/nodejs-demo-app:latest