go-catalog

module
v0.0.0-...-9952396 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2021 License: BSD-3-Clause

README

GO CATALOG SERVICE

The Catalog of Products

In this gRPC micro service you can see basic features and patterns in Go:

  • Hexagonal Architecture
  • Read Model
  • SOLID
  • Application Service tests
  • Integration Tests
  • Repository Pattern

Bounded Contexts

  ┌───────────────────┐           ┌───────────────────┐
  │      Catalog      │           │     Pricing       │ 
  └───────────────────┘           └───────────────────┘ 

How can I use it?

Prerequisites
  • Docker
Installing

Download repository

git clone https://github.com/amelendres/go-catalog.git

Build container

make build

Run tests

Run the tests

make test

Try it!

The shopping cart is running on http://localhost:8050

List Products

curl --location --request GET 'http://localhost:8050/products' \
--header 'Content-Type: application/json'
TODO
  • VO validations
  • Separate pricing domain
  • Add rdbms

Authors

license

Directories

Path Synopsis
cmd
catalog command
http
storage
testing

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL