dudo / js_react_skeleton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My App

Built with Parcel, but code wise is entirely React.

System Architecture

Setup

mkdir ~/projects/my_project
cd ~/projects/my_project
git clone git@github.com:my_project/my_app.git

cd ~/projects/my_project/my_app
docker-compose run --rm npm install
docker-compose up -d

Deployment

This should be done for you via CI/CD, but in case you need to manually push some artifacts. This assumes you have credentials within ~/.aws, and set the value of AWS_PROFILE appropriately in the docker-compose.override.yml file.

docker-compose run --rm npm run build
docker-compose run --rm aws s3 sync /usr/src/app/dist s3://com.my_project
# and if you're in a rush...
docker-compose run --rm aws cloudfront create-invalidation --distribution-id asdf1234asdf1234 --paths "/index.html"

Reading

Explore React guides, or jump in chat for help.

Learn about Docker.

Learn about GitHub Actions.

About


Languages

Language:JavaScript 48.7%Language:HTML 23.2%Language:CSS 20.4%Language:Dockerfile 4.8%Language:Shell 2.8%