Golang stdlib Restful Starter Kit
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/api
internal
mock
model
pkg
vendor
.gitignore
.travis.yml
Gopkg.lock
Gopkg.toml
LICENSE
README.md
test.sh

README.md

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