Skip to content

fernandoocampo/users-micro

Repository files navigation

users-micro

go micro service using PostgreSQL

How to build?

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

How to run a test environment quickly?

  1. make sure you have docker-compose installed.
  2. give initdb.sh execution permissions.
chmod +x sql/ddl/initdb.sh
  1. run the docker compose.
docker-compose up --build

or run this shortcut

make run-local
  1. once you finished to use the environment, follow these steps

    • ctrl + c
    • make clean-local

How to test?

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

Useful Queries

  • look for a user who is happy
SELECT * FROM public.jobseeker WHERE skills @> '["happy"]';

About

go micro service using PostgreSQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages