An open API service indexing awesome lists of open source software.

https://github.com/webmakaka/tinyhouse-a-fullstack-react-masterclass-with-typescript-and-graphql

[NewLine] TinyHouse: A Fullstack React Masterclass with TypeScript and GraphQL [ENG, 2020]
https://github.com/webmakaka/tinyhouse-a-fullstack-react-masterclass-with-typescript-and-graphql

antd apollo-client docker github-actions graphql kubernetes minikube nodejs oauth2 postgresql reactjs skaffold typeorm typescript ubuntu

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# [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](/img/pic-setup-k9s-01.png?raw=true)


![Application](/img/pic-setup-k9s-02.png?raw=true)


### [App1](./app1/Readme.md)

### [App2](./app2/Readme.md)

---


**Marley**

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