top
(README.md)
# Martini User Auth Example

This is an example Go Language application that uses the Martini framework, Gorm to handle database connections, and a few other middlewares.

### Key Features:

 - Encrypted passwords
 - Profile Creation Validation
 - Example on how to use layout.tmpl
 - Example on how to display data depending on if the user is logged in/out


### How to run:

1. Set up a new database, by default the config will look for the `demo` database
2. Create a new file named `config.toml` and use the contents of `config.toml.example` to start.  **Change the SqlConnection variable to your MySQL connection settings**
3. Run `go get` to grab all the dependencies
4. Run `go run *.go` or your favorite live-reload tool to test
5. If you use the default port, go to http://localhost:3003/ to test!
6. **The Test e-mail is: test@test.com, and password is `test123`**

### Questions? Comments?

Let me know if you find any bugs, or have any questions!  I will update this repo as needed!

Imports 9 package(s) ΒΆ

  1. github.com/martini-contrib/binding
  2. github.com/jinzhu/gorm
  3. github.com/go-sql-driver/mysql
  4. github.com/martini-contrib/sessions
  5. golang.org/x/crypto/bcrypt
  6. github.com/go-martini/martini
  7. github.com/BurntSushi/toml
  8. github.com/martini-contrib/csrf
  9. github.com/martini-contrib/render