/react-dockerized

This is a simple react-based application that is built with Docker, Gitlab CI/CD.

Primary LanguageJavaScript

React Dockerized

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.

How to run the application

  • To run locally, npm install && npm run start
  • to run via docker, docker-compose up

How to deploy

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:

Available AWS CLI docker images:

  • registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest

TODO

  • 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