Categorygithub.com/scanet9/scv-go-framework
module
1.0.0
Repository: https://github.com/scanet9/scv-go-framework.git
Documentation: pkg.go.dev

# README

scv-go-framework

Base framework for creating REST APIs in Go.

Included packages:

  • INFRASTRUCTURE: provides MongoDB connection function and Repository Pattern with CRUD operations using the official mongo--driver.
  • API/UTILS: provides JSON success/error responses and Middlewares for error handling and JWT token-based authorization.

Usage steps:

  1. Create an empty repository and clone it.
  2. Execute:
go mod init github.com/{username}/{repository_name}
go env -w GOPRIVATE=github.com/scanet9
go get github.com/scanet9/scv-go-framework 
  1. As this repository is private, it is needed to create an access token here. Give it repo and read:packages permissions.

Usage example:

go-mongo-restapi

# Packages

No description provided by the author
No description provided by the author