Skip to content

jasskarannn/service-catalogue-repo

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published