gowebapp

command module
v0.0.0-...-58914f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2015 License: MIT Imports: 13 Imported by: 0

README

GoWebApp

A basic MVC web app in Golang, but with all of the dependencies vendored using GoDep.

Usage
cd ~/go/src
git clone https://github.com/cleesmith/gowebapp.git
cd gowebapp
go build
maybe, edit config/config.json to change various app settings
sudo ./gowebapp
	- why sudo? coz the default is port 80, so edit config/config.json to change it
ToDo's
  1. switch from Foundation to Bootstrap
  2. use BoltDB instead of MySQL or SQLite
  3. reduce the app's footprint to the bare minimum
    • remove the unused dependencies, well, for my typical usage anyways
      • such as the user registration and recaptcha stuff
      • typically, my apps define an admin user who manages other users
    • currently on a Mac the binary file size is 16,370,184
      • which is not too big considering that is everything -- an all-in-one easy to deploy file
  4. cross compile doesn't work on a Mac because of the included C file for SQLite
Godep
Go 1.5:
  - don't do: godep save -r
  - ~/.bash_profile contains:
    export GO15VENDOREXPERIMENT=1
    ... this causes godep to use the vendor folder for dependencies

godep save
  - creates Godeps folder with Godeps.json in there
  - creates vendor folder and copies dependencies into it

go build
  - which will use the vendor folder instead of ~/go/src/whatever

This app works as expected, so by vendoring the dependencies the app should continue to work independent of any future changes to the dependenies on github or other repos.



See the original project at GoWebApp.



Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
middleware/httprouterwrapper
Package middleware allows the use of http.HandlerFunc compatible funcs with julienschmidt/httprouter
Package middleware allows the use of http.HandlerFunc compatible funcs with julienschmidt/httprouter
shared

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL