Giter Club home page Giter Club logo

example-go-config-yaml's Introduction

Example Go web app with YAML config

This is full project structure example of article Let's write config for your Golang web app on right way — YAML 👌.

Published on Dev.to @ 13 Feb 2020.

Requirements

  • Go 1.11+
  • Go Modules

Usage

  • Clone this repository and go to folder:
git clone https://github.com/koddr/example-go-config-yaml.git
cd example-go-config-yaml
  • Run server (by one of commands below):
# Build server, run tests, collect coverage info and run server:
make

# Only server with default config and without build and coverage info:
make run

# Use your own config file:
go run ./... -config my-config.yml
  • For show info about coverage (will open in browser):
make show_coverage
  • That's all! 🎉

Author

Code reviewer

Article assistance

If you want to say «thank you»:

  1. Twit about article on your Twitter.
  2. Add a GitHub Star and make Fork to this repository.
  3. Donate some money to project author via PayPal: @paypal.me/koddr or LiberaPay.
  4. Join DigitalOcean at my referral link (your profit is $100 and we get $25).

Thanks for your support! 😘

License

MIT

example-go-config-yaml's People

Contributors

dependabot-preview[bot] avatar icodealot avatar koddr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.