Categorygithub.com/lekovr/elsample
modulepackage
0.0.0-20160911200912-c9f412c8bbf2
Repository: https://github.com/lekovr/elsample.git
Documentation: pkg.go.dev

# README

elsample

GoCard

elsample - sample ELSA server application.

This web application skeleton aimed to be a base for other web applications.

Do not reinvent wheels, just fork this code and add your custom application logic.

Features

Basic

Extended

ELSA Middlewares

Addons

  • Makefile with usefull commands and version attr injection

Install

You need to install consup for running test site. After installing, symlink it to $GOPATH/src/github.com/LeKovr/consup

sudo echo "127.0.0.1 app.dev.lan" >> /etc/hosts
go get github.com/LeKovr/elsample
cd $GOPATH/src/github.com/LeKovr/elsample
make start
grep "random pass" log/app.dev.lan/sample-stderr.log

Open in browser http://app.dev.lan/my with user/password from grep results

License

The MIT License (MIT), see LICENSE.

Copyright (c) 2016 Alexey Kovrizhkin [email protected]

# Functions

Use calls negroni.Use for a slice of handlers.
UseIfAllowed calls midleware only if flow's prohibited flag is not set.

# Constants

Version set in source code.

# Variables

Build time filled by make on program build.
Commit tag from git, filled in by the compiler.

# Structs

Config defines all of application flags.
Flags defines local application flags.