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.lock
w/make yarn-import
cmd
-
Spin up the local environment in background (detached) mode:
make up
This 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
Makafile
available cmds just type:
make
make prd-build-image
- CONSIDERATION:
DOCKER_PRD_RELEASE_TAG
Makefile 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 |