go-web

command module
v0.0.0-...-3f65eb9 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

big-gopher

License MIT Build Status Go Report Card

Go-Web

Modern Web Application with Golang "Keep it simple, stupid"

Stack

Getting Started

$ go get ./...
$ docker-compose up
$ go run main.go

Install tools

$ go get -u honnef.co/go/tools/cmd/staticcheck
$ go get -u github.com/kisielk/errcheck

Guidelines

Tooling

Documentation

$ godoc github.com/starptech/go-web/controller
$ godoc -http=:6060

Visit localhost:6060 and search for go-web

Benchmarking

$ bombardier -c 10 -n 10000 http://localhost:8080/feed
$ bombardier -c 10 -n 10000 http://localhost:8080/users/1
$ bombardier -c 10 -n 10000 http://localhost:8080/users/1/details

TODO

Each of the items should be implemented with the easiest approach.

  • Testsuite
  • Parameter Validation
  • Configuration
  • Load ENV variables from .env file
  • Add Graylog logger
  • Structured logging
  • Frontend build pipeline
  • Postgresql models
  • Gracefully shutdown
  • Consistent error-handling
  • Web Development with Custom elements
  • Templating
  • Correct linking with the app bundles
  • Metric endpoint (Prometheus)
  • Healthcheck endpoint
  • Distributed cache with Redis
  • Localization in templates and handlers
  • JWT
  • Benchmarks
  • Integration tests
  • Unit tests
  • Using interface for db, cache (better testable)
  • Setup Travis CI with static code analysis
  • Code documentation godoc
  • Rollup bundles with hashs
  • Implement sample feed machanism (timestamp based)

Deploy on Heroku

Heroku Deploy

Further reading

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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