Skip to content

yevgeniy-shkolyar/team-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tgmbot.com cluster

Installing Packages

https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating

nvm use
npm install -g turbo yarn
yarn install

Start dependencies services

docker-compose up postgres redis -d

Build

turbo build

Development

turbo dev

Build docker

docker buildx bake --load api bot client

GPG

brew install sops helm gpg
helm plugin install https://github.com/jkroepke/helm-secrets
gpg --full-generate-key               
sops --encrypt  .env.secrets.decrypted > .env.secrets
sops --decrypt  .env.secrets > .env.secrets.decrypted

Helm

helm package ./helm/team-app
helm secrets upgrade --namespace team-app-dev --create-namespace -i team-app -f helm/team-app/values/development-credentials.yaml team-app-1.11.0.tgz

Encode secrets

helm secrets encrypt helm/team-app/values/staging-credentials.decrypted.yaml > helm/team-app/values/staging-credentials.yaml
helm secrets encrypt helm/team-app/values/production-credentials.decrypted.yaml > helm/team-app/values/production-credentials.yaml
helm secrets encrypt helm/team-app/values/development-credentials.decrypted.yaml > helm/team-app/values/development-credentials.yaml

Decode secrets

helm secrets decrypt helm/team-app/values/staging-credentials.yaml > helm/team-app/values/staging-credentials.decrypted.yaml 
helm secrets decrypt helm/team-app/values/production-credentials.yaml > helm/team-app/values/production-credentials.decrypted.yaml
helm secrets decrypt helm/team-app/values/development-credentials.yaml > helm/team-app/values/development-credentials.decrypted.yaml 

Telepresence

Connect traffic from k8s to local services and import environment variables docs

telepresence connect -n team-app-dev
telepresence helm install
telepresence helm upgrade
telepresence list -n team-app-dev 
telepresence intercept team-app-api --port 3002 --env-file apps/api/.env.development
telepresence intercept team-app-bot --port 3001 --env-file apps/bot/.env.development
telepresence intercept team-app-client --port 3000 --env-file apps/client/.env.development

Diconnect

telepresence leave team-app-bot /
telepresence leave team-app-client /
telepresence leave team-app-api /
telepresence quit -s

FRP (Fast Reverse Proxy).

helm package ./helm/frps
helm secrets upgrade --namespace frps --create-namespace -i frps  -f helm/frps/values/credentials.yaml  frps-0.1.0.tgz
yarn dotenv -e .env.secrets.decrypted -- frpc -c frpc.toml
helm secrets encrypt helm/frps/values/credentials.decrypted.yaml > helm/frps/values/credentials.yaml
helm secrets decrypt helm/frps/values/credentials.yaml > helm/frps/values/credentials.decrypted.yaml

Figma

https://www.figma.com/proto/Aa0iKIwFFhNB3bIdzlf7g7/bot?page-id=206%3A1269&node-id=218-2263&node-type=canvas&viewport=95%2C-1995%2C0.49&t=4lzVB0Oyc5Re6yOJ-1&scaling=contain&content-scaling=fixed&starting-point-node-id=218%3A2263

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •