Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 1.33 KB

README.md

File metadata and controls

22 lines (18 loc) · 1.33 KB

My Backend Go workspace

This backend Go workspace will be used as a template or references from any of my future project

Reference

This works were inspired and referenced from workspace project

Setup for Tilt

Run Sample App: external/apis

Start the local dev (Tilt) environment

  • Run the following command in local tilt up and press space to jump to the tilt dashboard
  • PostgreSQL Can be access by pgadmin4, the user can be either postgres or bego, password: password
  • Troubleshooting: If you got some trouble with publishing image Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? especially when running in Rancher-desktop, then execute sudo ln -s ~$USER/.rd/docker.sock /var/run/docker.sock to map the docker.sock to /var/run/

Start with CLI

  • Install Rancher-desktop and docker-compose. Make sure both docker and docker-compose work properly
  • Deploy postgreSQL by docker-compose -f external/apis/docker-compose.yaml up -d
  • Run apis (which is our sample app) by go run ./external/apis/cmd/apis/...