This is a simple skeleton project for Gin HTTP web framework.
- Create database:
$ cat resources/sql/db.sql | sqlite3 storage/db/db.sqlite
$ go run server.go
- Browse to http://localhost:9000
$ go test
Set storage/
folder permission to writable when deploy to production environment
models
: Model filespublic
: Static file rootresources/sql
: sql dump file for sample databaseroutes
: Controller filesstorage/log
: Log filesstorage/db
: SQLite DB filesutils
: Helper and Utility filesviews
: Template files
server.go
: Entry point to applicationserver_test.go
: API layer unit testconfig.toml
: Configurationviews/index.tpl.html
: Template file for the home page