scv-go-tools

module
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: MIT

README

scv-go-tools v3

Tools for building REST APIs in Go, easing the Hexagonal Architecture (Ports & Adapters).

Included packages

  • PORTS: provides an interface of the repository pattern with CRUD operations, to be used in the Core of the API.
  • INFRASTRUCTURE: provides MongoDB and PostgreSQL connection functions and adapters for implementing the repository interface.
  • API/UTILS: provides JSON success/error responses with logs and Middlewares for error handling and JWT authentication & role-based authorization.

Usage steps

  1. Create an empty repository and clone it.
  2. Execute:
go mod init github.com/{username}/{repository_name}
go get github.com/sergicanet9/scv-go-tools/v3

Usage examples

go-hexagonal-restapi

Author

Sergi Canet Vela

License

This project is licensed under the terms of the MIT license.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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