Skip to content

spectre013/sixty

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sixty

sixty is an example of a "test the waters" website built using Go, HTML5, CSS3, Bootstrap, MySQL and the Beego web framework. The only JS (not included in Bootstrap) was added to handle flash messages.

Visit the 60+ Adventures website at http://60plusadventures.com

Installation

Requirements

Everything below assumes you have installed Go and defined $GOPATH (linux) or %GOPATH% (windows). This document explains GOPATH setup. This site explains how windows users can create %GOPATH% and edit PATH.

Database Setup

The file setup.sql contains SQL to create the database and the required tables (assuming you use MySQL). Beego Also supports SQL Lite and Postgres. If you don't use MySQL you will need to modify the SQL in setup.sql.

See comments in main.go regarding correct database registration.

Installation

To use this method you must have Git installed.

go get github.com/emadera52/sixty

This will install the application executable sixty (linux) or sixty.exe (windows) in GOPATH/bin which is why it's handy to add that to your PATH.

Source code for the project will be in GOPATH/src/github.com/emadera52/sixty. Source code for Beego, and the required MySQL driver will also be in the GOPATH/src/github.com directory. Source code for advanced encryption and encoding will be in GOPATH/src/golang.org/x/crypto. Those are the only external dependencies used by this project.

Get the Source Code - Other Options

Click Clone in Desktop. Learn more here.

To Fork this project with the intent of contributing bug fixes, modification or new stuff follow the instructions here

Click Download ZIP to get a completely independent copy to do with as you please within the limits of the LICENSE (see below).

Features

  • Non-SSL User Authentication
  • CSRF protection
  • Extensive use of Go templates to avoid JS
  • Encoding, Encrypting and Hashing examples
  • Based on Beego's MVC architecture: http://beego.me/docs/mvc/
  • Uses Beego's ORM for Database access
  • Demonstrates a simple 1:many Database relationship
  • Uses Beego's per request context along with persistent sessions
  • Demonstrates bootstap's responsive grid. Usable smart phone > desktop
  • Can be used as a template for gaging public interest in other ideas

Documentation (Technical)

Fair Warning

  • This is my first Go project
  • This is the first project I've published on GitHub
  • Constructive suggestions and criticism solicited
  • Use Issues to report problems, ask questions or make suggestions

TODO

  • Make comments viewable
  • Add email handling for validation, password reset and user contact
  • Create a facebook page and twitter account for the project
  • Create a demo destination site with video, ads, etc.

LICENSE

sixty is licensed under the Apache Licence, Version 2.0

(http://www.apache.org/licenses/LICENSE-2.0.html).

Individual source files may contain additional license information regarding included third party code

About

Website built using GO, HTML5, CSS3, Bootstrap, MySQL and the Beego web framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 32.4%
  • Go 30.5%
  • Smarty 27.2%
  • CSS 9.9%