Skip to content

About

Deploying a simple full stack webapp in AWS and using Github Actions for CI/CD

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

Project Achievements

This document captures the milestones, achievements, and key accomplishments during the development of this project.


Project Overview

Project Name: Full-Stack Deploy Date Started: August 2026 Stack: Docker, Client (Frontend), Server (Backend)


Screenshots

Docker Running in EC2

Docker on EC2

Frontend Running in Browser

Frontend in Browser


Milestones

  • Initial project setup with frontend and backend
  • Docker containerization of both services
  • CORS configuration for client-server communication
  • Docker Compose orchestration
  • Set up continuous integration/deployment

Key Accomplishments

1. Project Initialization

  • Created a full-stack project structure with separate client and server directories
  • Initialized Docker configuration for containerization

2. Docker Setup

  • Configured docker-compose.yml to orchestrate multiple services
  • Set up networking between frontend and backend containers

3. CORS Configuration

  • Properly configured Cross-Origin Resource Sharing (CORS)
  • Enabled seamless communication between frontend and backend

4. Service Integration

  • Successfully containerized both frontend and backend services
  • Verified end-to-end communication between services

Lessons Learned

Record your key takeaways and lessons learned during this project here.


Future Improvements

  • Add automated testing
  • Implement monitoring and logging
  • Add authentication and authorization
  • Optimize Docker images for production

CI/CD Setup

A GitHub Actions workflow is now included at .github/workflows/deploy.yml to build the frontend, backend, and Docker Compose setup on every push or pull request to the main branch.

Required GitHub Secrets

Add these secrets to your GitHub repository:

  • AWS_EC2_HOST
  • AWS_EC2_USERNAME
  • AWS_EC2_PRIVATE_KEY
  • AWS_EC2_PORT (optional, defaults to 22)

EC2 Setup

On the target EC2 instance, install Docker and Docker Compose, then ensure the deployment user can run Docker commands:

sudo apt update
sudo apt install -y docker.io docker-compose-plugin git
sudo systemctl enable --now docker
sudo usermod -aG docker $USER

After reconnecting to the instance, the GitHub Actions workflow will clone the repository and start the app with Docker Compose.

Credits

Add any acknowledgments or credits here.

About

Deploying a simple full stack webapp in AWS and using Github Actions for CI/CD

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages