Simple register web app built with node.js.
0
stars
0
forks
source link
Create an Web App with CICD pipeline to deploy into cloud.
Simple register web app
- Skills:
- JavaScript, HTML, CSS, Node.js, Express, Mocha,
- AWS SDK, AWS DynamoDB, AWS Elasticbeanstalk, AWS S3,
- Terraform, Docker, Github, Github action, yaml
Development plan
- Build Web app and deploy into local machine
- Build FE - HTML, CSS, JavaScript
- Build BE - Node.js
- Connect DB - AWS Dynamodb by using AWS SDK
- Adapt Github action CICD pipeline
- Sets Enviroment variables and adapt CICD piprline into the app
- Add test for the app by using Mocha
- Add Build docker image and push to dockerhub registry and test the docker image
- Deploy into AWS Elastic Beanstalk by using terraform and AWS SDK
DevOps plan
CICD pipeline
- Build and test the app
- curl test for frontend
- Create a test case to test API test using Mocha/chai
- Create a docker image
- Build docker image
- Push to docker hub registry
- Test docker image
- Deploy into cloud
- Create AWS resources by using Terraform
- Upload files into AWS S3
- Deploy into AWS Elastic beanstalk
Security
- AWS SDK credential encrypted as variables
- Docker hub credentials and docker username and registry name encrypted as variables
- Use AWS IAM user with limited permission
Overall Feedback
- Use a Branch to seperate development process. -> Make easy to track commit history
- Write codes by thinking future changes
- Set up local and git hub action variables with same name to run both environment.
- Use Issue to record errors or Confusing Things.
- Always documents.