Negroni-Example icon indicating copy to clipboard operation
Negroni-Example copied to clipboard

A simple Golang example using Negroni + Postgres

Negroni Example

This is an example Negroni web app with basic auth

Note

  • This example webapp was originally built with a MySQL DB, but has now been modified to use Postgres. There is now a 'mysql' branch that still uses the go-mysql lib, but development on this branch has slowed to little more than a trickle

Features

  • Signup/Login
  • Pages rendered from templates
  • Very Simple API call via Javascript on homepage

Requirements

  • Negroni
  • Negroni-sessions
  • Render
  • pq
  • crypto/bcrypt

Try Me

Deploy to Heroku

Deploy

To Do

  • Hash passwords
  • More extensive api examples