go-echo-server-starter

command module
v0.0.0-...-ed02202 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: MIT Imports: 1 Imported by: 0

README

Go Server Starter

Go web server starter using Echo v4. ⚡

This repository provides a starting point for your first High Performance Web Server in Go.

Of course, this boilerplate is totally debatable meaning you are free to customize it on demand or contribute with feedback or code.

Features

Requirements

Install

make

Development

Run application and watch for changes:

make watch

Test application:

make test

Add missing and remove unused modules:

make tidy

Test a release (snapshot):

make release-test

Database

Settings via following environment variables:

  • DB_HOST
  • DB_PORT
  • DB_USERNAME
  • DB_PASSWORD
  • DB_NAME
  • DB_CHARSET
  • DB_PARSETIME
  • DB_LOC
Development database
  • Development SQL database script is located at db/dbtodos.sql.
  • Development environment variables example at refresh.yml file.

Production

Release a versioned binary:

make release

Just build a single optimized binary:

make build

Contributions

Pull requests and issues are very appreciated.

License

MIT license

© 2019 Jose Quintana

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
env
Package env provides utility functions for loading environment variables with defaults.
Package env provides utility functions for loading environment variables with defaults.

Jump to

Keyboard shortcuts

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