Objective

Deploy the frontend service of the Main Bank App using Docker, GitHub Actions (CI/CD), and Argo CD. Ensure environment variables and configurations are securely set, and the app is version-controlled and production-ready.


Prerequisites

Before deploying the frontend, the following items were in place:


Frontend Project Files

The frontend project includes the following critical files/folders:

File/Folder Purpose
public/ Contains the static assets and HTML file for the app
src/ Contains React/Vue/Angular components and logic
.env Stores environment-specific variables (API endpoint, etc.)
.dockerignore Excludes unnecessary files from the Docker image
.gitignore Prevents sensitive/unwanted files from being tracked by Git
Dockerfile Instructions for containerizing the frontend app
package.json Lists dependencies, scripts, and metadata
package-lock.json Locks dependency versions

frontend folders.png


🔄 GitHub CI/CD Workflow File

cicd.png


📌Deployment

1. Initial Setup: GitHub Repository