This is an example Go Language application that uses the Martini framework, Gorm to handle database connections, and a few other middlewares.
- 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
- Set up a new database, by default the config will look for the
demo
database - Create a new file named
config.toml
and use the contents ofconfig.toml.example
to start. Change the SqlConnection variable to your MySQL connection settings - Run
go get
to grab all the dependencies - Run
go run *.go
or your favorite live-reload tool to test - If you use the default port, go to http://localhost:3003/ to test!
- The Test e-mail is: [email protected], and password is
test123
Let me know if you find any bugs, or have any questions! I will update this repo as needed!