webmakaka / TinyHouse-A-Fullstack-React-Masterclass-with-TypeScript-and-GraphQL

[NewLine] TinyHouse: A Fullstack React Masterclass with TypeScript and GraphQL [ENG, 2020]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[NewLine] TinyHouse: A Fullstack React Masterclass with TypeScript and GraphQL [ENG, 2020]


Final Project:
https://www.tinyhouse.app/


Current Project Code Quality:
https://sonarcloud.io/dashboard?id=webmakaka_TinyHouse-A-Fullstack-React-Masterclass-with-TypeScript-and-GraphQL


How to run apps

I am working in ubuntu 20.04.1 LTS

Docker, Minikube, Kubectl, Skaffold should be installed.


Docker

$ docker -v
Docker version 20.10.6, build 370c289

Minikube installation

$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/


$ minikube version
minikube version: v1.20.0

Kubectl installation

$ curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/

$ kubectl version --client --short
Client Version: v1.21.1


Skaffold installation

$ curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64

$ chmod +x skaffold
$ sudo mv skaffold /usr/local/bin

$ skaffold version
v1.25.0

Run minikube


$ {
    minikube --profile TinyHouse config set memory 8192
    minikube --profile TinyHouse config set cpus 4

    // minikube --profile TinyHouse config set vm-driver virtualbox
    minikube --profile TinyHouse config set vm-driver docker

    minikube --profile TinyHouse config set kubernetes-version v1.21.1
    minikube start --profile TinyHouse --embed-certs
}

// If needed start / stop / delete
// $ minikube --profile TinyHouse start
// $ minikube --profile TinyHouse stop
// $ minikube --profile TinyHouse delete

// Enable ingress
$ minikube addons --profile TinyHouse enable ingress

$ minikube --profile TinyHouse ip
192.168.49.2

$ sudo vi /etc/hosts
#---------------------------------------------------------------------
# Minikube
#---------------------------------------------------------------------
192.168.49.2 tinyhouse.dev

k9s Installation (Optional)


// homebrew install
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

// commands from output of previous command
// set your home, not mine
$ echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/marley/.profile
$ eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

$ brew install k9s

$ sudo vi /etc/profile.d/k9s.sh

# set your home, not mine
#### k9s #######################

export MINIKUBE_HOME=/home/marley/.minikube

#### k9s #######################

$ sudo chmod 755 /etc/profile.d/k9s.sh
$ source /etc/profile.d/k9s.sh

$ k9s

Application


Application


App1

App2



Marley

Any questions in english: Telegram Chat
Любые вопросы на русском: Телеграм чат

About

[NewLine] TinyHouse: A Fullstack React Masterclass with TypeScript and GraphQL [ENG, 2020]


Languages

Language:TypeScript 88.4%Language:CSS 10.2%Language:Shell 0.5%Language:HTML 0.4%Language:JavaScript 0.3%Language:Dockerfile 0.1%