command
module
Version:
v0.0.0-...-05b266e
Opens a new window with list of versions in this module.
Published: May 8, 2015
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶

go-bootstrap
This is not a web framework. It generates a skeleton web project for you to kick-ass.
Feel free to use or rip-out any of its parts.
Installation
-
go get github.com/go-bootstrap/go-bootstrap
-
cd $GOPATH/src/github.com/go-bootstrap/go-bootstrap
-
go run main.go -dir github.com/{git-user}/{project-name}
-
Start using it: cd $GOPATH/src/github.com/{git-user}/{project-name} && go run main.go
Decisions Made for You
This generator makes A LOT of decisions for you. Here's the list of things it uses for your project:
-
PostgreSQL is chosen for the database.
-
bcrypt is chosen as the password hasher.
-
Bootstrap Flatly is chosen for the UI theme.
-
Session is stored inside encrypted cookie.
-
Static directory is located under /static
.
-
Model directory is located under /dal
(Database Access Layer).
-
It does not use ORM nor installs one.
-
Test database is automatically created under $GO_BOOTSTRAP_PROJECT_NAME-test
.
-
A minimal Dockerfile is provided.
-
github.com/tools/godep is chosen to manage dependencies.
-
github.com/jmoiron/sqlx is chosen to connect to a database.
-
github.com/gorilla is chosen for a lot of the HTTP plumbings.
-
github.com/carbocation/interpose is chosen as the middleware library.
-
github.com/tylerb/graceful is chosen to enable graceful shutdown.
-
github.com/mattes/migrate is chosen as the database migration tool.
-
github.com/Sirupsen/logrus is chosen as the logging library.
Documentation
¶
Package main generates web project.
Source Files
¶
Directories
¶
blank
|
|
libenv
Package libenv provides environment related library functions.
|
Package libenv provides environment related library functions. |
libhttp
Package libhttp provides http related library functions.
|
Package libhttp provides http related library functions. |
libstring
Package libstring provides string related library functions.
|
Package libstring provides string related library functions. |
|
|
middlewares
Package middlewares provides common middleware handlers.
|
Package middlewares provides common middleware handlers. |
Package helpers provide various convenience functions.
|
Package helpers provide various convenience functions. |
Click to show internal directories.
Click to hide internal directories.