项目作者: mustanish

项目描述 :
A simple golang skeleton for writing REST APIs following best practices
高级语言: Go
项目地址: git://github.com/mustanish/omelette.git
创建时间: 2019-09-18T11:38:33Z
项目社区:https://github.com/mustanish/omelette

开源协议:MIT License

下载


omelette

A simple golang skeleton built for writing REST APIs following best practices.

Contains basic CRUD operations, middlewares, test cases and schema validation.

Requirements

  • Docker and Docker Compose

Getting Started

  • Clone this repo https://github.com/mustanish/omelette then
  • Run docker-compose -f docker-compose.yml up inside project root directory then
  • Open http://localhost:3000

Code Layout

The directory structure of the application:

  1. app/ App sources
  2. handlers/ App handlers go here
  3. connectors/ App connectors go here
  4. middlewares/ App middlewares go here
  5. responses/ App responses go here
  6. routes/ App routes go here
  7. schemas/ App schemas go here(Validation and Database)
  8. config/ Configuration directory
  9. config.go Main app configuration file
  10. helpers/ Helper functions can be written
  11. tests/ Test cases can be written here

Available routes

  1. https://www.getpostman.com/collections/42dba8a3c1243d76facb