An Angular + Node/Express + MongoDB + Bootstrap Simple CRUD. This code will add, upadate and delete data to mongodb using express rest APIS and frontend through Angular.
- Git
- Docker CLI
- Docker compose V2
- Docker compose CLI
- AWS account
Note: watch the next repository https://github.com/danielorozco06/installations
- Clone or download this repository
- Enable base URI with localhost in file
frontend/src/app/user.service.ts
- Start docker sevice:
sudo service docker start
- Select local context:
docker context use default
- Build images:
docker compose build
- Execute containers:
docker compose up
http://localhost:4200/user/create
- Clone or download this repository
- Enable base URI with loadBalancerDNS in file
frontend/src/app/user.service.ts
- Start docker sevice:
sudo service docker start
- Create context to deploy on AWS ECS:
docker context create ecs myecscontext
- Select local context:
docker context use myecscontext
- Build images:
docker compose build
- Execute containers:
docker compose up
http://loadBalancerDNS:4200/user/create
http://loadBalancerDNS:4200/user
- Clone or download this repository
- Enable base URI with loadBalancerDNS in file
frontend/src/app/user.service.ts
- Create a feature branch with name structure
feature/branchName
- Create and commit changes needed
- Publish the feature branch:
git push -u origin feature/branchName
- A GitHub action workflow starts to create image, publish in Docker Hub (image tag DEV) and deploy on AWS account (DEV). Workflow in file
.github/workflows/pipeline_CICD_Dev.yml
- Create a Pull Request on GitHub to merge
feature/branchName
totrunk
- A GitHub action workflow starts to create image, publish in Docker Hub (image tag PDN) and deploy on AWS account (PDN). Workflow in file
.github/workflows/pipeline_CICD_Pdn.yml