/mxmariner.com

https://mxmariner.com/ Static (SPA) Single Page Web App

Primary LanguageJavaScript

Source for https://mxmariner.com/ Static (SPA) Single Page Web App

Stack

Yarn (Debian Linux)

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt-get update && sudo apt-get install yarn

export PATH="$PATH:`yarn global bin`" 

Setup Steps

yarn global add create-react-app
yarn global add react-scripts
create-react-app mxmariner.com
cd mxmariner.com
yarn add rx-lite 
yarn add react-router
yarn add react-router-dom

Local Dev

yarn start 

Build Release

yarn build 

Build Docker Image

yarn global add create-react-app
yarn global add react-scripts
yarn add rx-lite
yarn add react-router
yarn add react-router-dom
yarn build
tag_postfix="$(date +"%m-%d-%y")_r0"
docker build -t "manimaul/mxmariner.com:${tag_postfix}" .
docker tag "manimaul/mxmariner.com:${tag_postfix}" "manimaul/mxmariner.com:latest"
docker push "manimaul/mxmariner.com:latest"
docker push "manimaul/mxmariner.com:${tag_postfix}" 

Deploy to Kubernetes

cat k8s.yml | linkerd inject - | kubectl apply -f -