Giter Club home page Giter Club logo

echo-boilerplate's Introduction

echo-boilerplate Go Report Card

A small boilerplate app using the minimalist echo framework with 12-factor and following golang-standards' project-layout.

Building & Running locally

go build ./cmd/app && ./app

Usage

Usage of ./app:
      --app-name string               The name of the application. Used to prefix environment variables. (default "app")
      --bind-address ip               The IP address to listen at. (default 127.0.0.1)
      --bind-port uint                The port to listen at. (default 1323)
      --cors-allow-credentials        Tells browsers whether to expose the response to frontend JavaScript code when the request's credentials mode (Request.credentials) is 'include'.
      --cors-allow-headers strings    Indicate which HTTP headers can be used during an actual request.
      --cors-allow-methods strings    Indicates which HTTP methods are allowed for cross-origin requests. (default [GET,HEAD,PUT,PATCH,POST,DELETE])
      --cors-allow-origins strings    Indicates whether the response can be shared with requesting code from the given origin. (default [*])
      --cors-enabled                  Enable cross-origin resource sharing.
      --cors-expose-headers strings   Indicates which headers can be exposed as part of the response by listing their name.
      --cors-max-age int              Indicates how long the results of a preflight request can be cached.
      --env-name string               The environment of the application. Used to load the right config file. (default "local")
      --graceful-timeout uint         Timeout for graceful shutdown. (default 30)
      --log-file string               The log file to write to. 'stdout' means log to stdout, 'stderr' means log to stderr and 'null' means discard log messages. (default "stdout")
      --log-format string             The log format. Valid format values are: text, json. (default "text")
      --log-level string              The granularity of log outputs. Valid log levels: debug, info, warning, error and critical. (default "info")
      --log-requests-disabled         Disables HTTP requests logging.

Building Docker image

docker build -t app .

echo-boilerplate's People

Contributors

admiralobvious avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.