ribice / chisk

Golang stdlib Restful Starter Kit

Home Page:https://www.ribice.ba/beyond-rest/

Repository from Github https://github.comribice/chiskRepository from Github https://github.comribice/chisk

Chisk - Golang stdlib REST starter kit

Build Status codecov Go Report Card

Chisk - (go-chi starter kit), is a starter kit for building RESTful APIs using Golang stdlib only (with 3rd party libs being used for integrations, e.g. Redis, PostgreSQL).

It features only structured package management, middleware and reusable packages - READ WHY.

Chisk's project structure mostly follows THIS example repository.

Wiring up new services

  1. Create a new directory inside /internal/ named after your domain, e.g. team. Inside it, create a file named team.go that will hold your main application service code (CRUD). Other application service code should be located in the same directory/package, named after its usage.

  2. Directory /internal/team/platform/ contains platform integrations, e.g. redis, postgresql, email, sms etc.

  3. Directory transport contains http handlers, binders, request/response models, swagger annotations and other transport related code.

  4. Wire up new service inside cmd/service_name/main.go, or use a single service ('monolith') like api.

License

chisk is licensed under the MIT license. Check the LICENSE file for details.

Author

Emir Ribic

About

Golang stdlib Restful Starter Kit

https://www.ribice.ba/beyond-rest/

License:MIT License


Languages

Language:Go 99.2%Language:Shell 0.8%