go_echo_api_boilerplate

module
v0.0.0-...-ec85eee Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT

README

Go API boilerplate built with echo framework

CircleCI codecov

Getting Started

Prerequisites
  • Go 1.12 (skip if you use docker)
  • MySQL 5.7 (skip if you use docker)
  • direnv
External Service
  • Twilio (for SMS authentication)
  • SendGrid (for sending email)
Usage
  1. Clone repo
git clone https://github.com/k-yomo/go_echo_api_boilerplate.git
cd go_echo_api_boilerplate
  1. Create .env file in reference to .env.sample

  2. Install dependent modules

go mod install
  1. Run dev server
// Listening on localhost:1323 with hot reloading(localhost:5002)
realize start --server
Usage with Docker
  1. Clone repo
git clone https://github.com/k-yomo/go_echo_api_boilerplate.git
cd go_echo_api_boilerplate
  1. Create .env file in reference to .env.sample

  2. Run containers

// Listening on localhost:1323 with hot reloading(localhost:5002)
docker-compose up -d

Running the tests

make test
with coverage
make cover

API Docs

  1. Run dev server
  2. Open localhost:1323/swagger/index.html

Migration

Deployment(WIP)

Directories

Path Synopsis
cmd
db
internal
middleware
Package model contains the types for schema 'go_echo_api_boilerplate_development'.
Package model contains the types for schema 'go_echo_api_boilerplate_development'.
pkg
sms

Jump to

Keyboard shortcuts

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