Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.09 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.09 KB

Service Catalogue Service

Tech Stack -

Go, PostreSQL

Dependencies -

Goose

Run Migration -

goose -dir database/migrations postgres "postgres://postgres:postgres@db:5432/catalogue_service?sslmode=disable" up

postgres://postgres:postgres@db:5432/catalogue_service?sslmode=disable

^ this a connection string and need to be updated according to configuration of postgres connection.

Build the service -

go build -o service-catalogue main.go

Run the service -

./service-catalogue

API Endpoints of the service serve the following purposes -

  1. Check DB Health
  2. Add a new 'service' card
  3. Add a new 'version'
  4. Search for a service based on input text with pagination.
  5. Retrieve all services with pagination.
  6. Retrieve a particular service.

Video Walkthrough of the service API Endpoints

service-catalogue.mp4

Docker

docker-compose up --build --force-recreate image