This is a simple react-based application that is built with Docker with the final product being served in an nginx:alpine
image. The main objective of this project is to play around with Docker, AWS and Gitlab CI/CD.
- To run locally,
npm install && npm run start
- to run via docker,
docker-compose up
To upload this application to AWS S3, you need to create an S3 bucket with security credentials. Below are the variables for you to fill in:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
The CI/CD pipeline will do the job to deploy automatically the application.
Follow this tutorial to learn more:
- AWS S3 Static Website Hosting using Gitlab CI/CD
- React Deploy to AWS S3 with Gitlab CI/CD
- Deploying a React app on AWS with Gitlab CI
- GitLab CI/CD example with a dockerized ReactJS App
- How to Deploy a Static Website to AWS with GitLab CI
- Automating React App Deployment to S3 with Docker and TravisCI
Available AWS CLI docker images:
- registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest
- Run the application using WSL 2
- Add gitlab ci/cd pipelines
- Add ability to run unit tests on ci/cd
- deploy on AWS S3
- try deploying using AWS ECS and AWS fargate