josh-rl / biz-card

0 stars 0 forks source link

Info

Created by: Joshua Lawrinenko

Client

React app bootstrapped with create-react-app.\ Served through react-scripts in dev.\ Updates docker image on the fly in dev.\ Served through nginx docker image in prod.

Server

Node, Express, and Mongoose.\ Nodemon in dev, updates docker image on the fly.

State

MongoDB docker instance database storage location.\ Optional folder when running in Atlas mode.\ Required for running in Local mode (see Dockerfiles).

Important

Pushes to main trigger a Github action.\ This action deploys main to AWS EBS.

Commands

docker compose build

Builds docker container/images

docker compose up

Runs docker container, press ctrl+c to stop container

Dev Commands

docker compose -f docker-compose-dev.yml build

Builds docker container/images

docker compose -f docker-compose-dev.yml up

Runs docker container, press ctrl+c to stop container