- Docker
- Air for live reload during development
- Migrate CLI to manage migrations
- Mockgen to generate mocks
# install dependencies
make dep
# docker compose up
make setup-local
# run db migrations
make migrate-up
Run this command and every changes you make will be automatically rebuild, thanks to Air.
make run
make build-docker
Or if you prefer to run the image locally
docker build --tag simple-app .
docker run --name simple simple-app
# automatically delete existing
docker run --name simple --rm simple-app
# bind to port $docker_host_port:$container_port
docker run -p 0.0.0.0:4001:4001 --name simple --rm simple-app
minikube start
kubectl cluster-info
# to point your shell to minikube's docker-daemon, run:
eval $(minikube -p minikube docker-env)
kubectl create -f deployment.yaml
kubectl create -f service.yaml
kubectl port-forward svc/simple-service 4001:4001
curl localhost:4001
# alternative to get the local endpoint url
minikube service simple-app --url