go-bootstrap

command module
v0.0.0-...-05b266e Latest Latest
Warning

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

Go to latest
Published: May 8, 2015 License: MIT Imports: 8 Imported by: 0

README

GoDoc license

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

  1. go get github.com/go-bootstrap/go-bootstrap

  2. cd $GOPATH/src/github.com/go-bootstrap/go-bootstrap

  3. go run main.go -dir github.com/{git-user}/{project-name}

  4. 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:

  1. PostgreSQL is chosen for the database.

  2. bcrypt is chosen as the password hasher.

  3. Bootstrap Flatly is chosen for the UI theme.

  4. Session is stored inside encrypted cookie.

  5. Static directory is located under /static.

  6. Model directory is located under /dal (Database Access Layer).

  7. It does not use ORM nor installs one.

  8. Test database is automatically created under $GO_BOOTSTRAP_PROJECT_NAME-test.

  9. A minimal Dockerfile is provided.

  10. github.com/tools/godep is chosen to manage dependencies.

  11. github.com/jmoiron/sqlx is chosen to connect to a database.

  12. github.com/gorilla is chosen for a lot of the HTTP plumbings.

  13. github.com/carbocation/interpose is chosen as the middleware library.

  14. github.com/tylerb/graceful is chosen to enable graceful shutdown.

  15. github.com/mattes/migrate is chosen as the database migration tool.

  16. github.com/Sirupsen/logrus is chosen as the logging library.

Documentation

Overview

Package main generates web project.

Directories

Path Synopsis
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.

Jump to

Keyboard shortcuts

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