modulepackage
0.0.0-20160911200912-c9f412c8bbf2
Repository: https://github.com/lekovr/elsample.git
Documentation: pkg.go.dev
# README
elsample
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
- negroni
- recovery
- static files
- tests
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.