Skip to content

bliaxiong/Negroni-Boilerplate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Negroni Boilerplate (MySQL version)

This is a forked Negroni web app with basic auth and user registrations via MySQL database

Note

Fixed Bcrypt login\registration

Features

  • Signup/Login
  • Bcrypt passwords
  • TOML support for configuration
  • Pages rendered from templates
  • Very Simple API call via Javascript on homepage

Requirements

  • go get github.com/BurntSushi/toml
  • go get golang.org/x/crypto/bcrypt
  • go get github.com/codegangsta/negroni
  • go get github.com/goincremental/negroni-sessions
  • go get github.com/goincremental/negroni-sessions/cookiestore
  • go get github.com/go-sql-driver/mysql
  • go get github.com/unrolled/render

Configuration

Import users-mysql.sql in your MySQL database, then edit config.toml

To Do

  • More extensive api examples
  • Add a minimal CRUD

About

A simple Go boilerplate using Negroni and MySQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 52.5%
  • JavaScript 36.4%
  • CSS 11.1%