go micro service using PostgreSQL
from project folder executes commands below, it will generate binary files in the ./bin/
folder
- just build with current operating system
make build
- build for a linux distro operating system
make build-linux
- make sure you have docker-compose installed.
- give initdb.sh execution permissions.
chmod +x sql/ddl/initdb.sh
- run the docker compose.
docker-compose up --build
or run this shortcut
make run-local
-
once you finished to use the environment, follow these steps
- ctrl + c
- make clean-local
from project folder run the following command
go test ./...
docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy
- look for a user who is happy
SELECT * FROM public.jobseeker WHERE skills @> '["happy"]';