Built with Gatsby and most of the credits to https://github.com/bchiang7/v4
- Setup Local Env vars
DOCKER_ENV := dev
DOCKER_COMPOSE_FILE := docker-compose-${DOCKER_ENV}.yaml
DOCKER_COMPOSE_CMD := COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f ${DOCKER_COMPOSE_FILE}
DOCKER_PRD_RELEASE_TAG := v0.0.1
-
Update your NodeJs dependencies manager (npm) file ( 📒 consider this is an OPTIONAL step, only strictly necessary if dependencies were updated or new ones are being added)
- Update /package.json
- Update
yarn.lockw/make yarn-importcmd
-
Spin up the local environment in background (detached) mode:
make upThis won't show any containers verbose output (if needed just docker-compose up), so you will have to wait until the
local server is up navigate to http://localhost:8000 (if DOCKER_ENV := prd then http://localhost:80) in your
web browser.
- Check running containers with docker-compose:
make ps- Check running containers logs:
make app-logs- Stop and remove the containers:
make stop- To check all the
Makafileavailable cmds just type:
makemake prd-build-image
- CONSIDERATION:
DOCKER_PRD_RELEASE_TAGMakefile var should be updated with the proper release semver tag eg:v0.0.1
-
Make sure you have the following dependencies installed in your system:
- node >= v14.1.0
- npm >= v6.14.4
- yarn >= v1.22.4
-
Generate yarn.lock dependencies:
yarn import-
Install the Gatsby CLI
npm install -g gatsby-cli
-
Install and use the correct version of Node using NVM
nvm install
-
Install dependencies
yarn
-
Start the development server
npm start
-
Generate a full static production build
npm run build
-
Preview the site as it will appear once deployed
npm run serve
| Color | Hex |
|---|---|
| Navy | #0a192f |
| Light Navy | #172a45 |
| Lightest Navy | #303C55 |
| Slate | #8892b0 |
| Light Slate | #a8b2d1 |
| Lightest Slate | #ccd6f6 |
| White | #e6f1ff |
| Green | #64ffda |
