blueprint

command module
v0.0.0-...-f200a5c Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2017 License: MIT Imports: 6 Imported by: 0

README

Blue Jay - Blueprint

Go Report Card GoDoc

Blueprint for your next web application in Go.

Documentation available here: https://blue-jay.github.io/

Blue Jay is a web toolkit for Go. It's a collection of command-line tools and a web blueprint that allows you to easily structure your web application. There is no rigid framework to which you have to conform.

There are a few components:

  • Blueprint is a model-view-controller (MVC) style web skeleton.

  • Jay is a command-line tool with modules for find/replace, database migrations, code generation, and env.json.

  • Core is a collection of packages available to Blueprint and Jay as well as other applications.

Check the milestones for project status.

Documentation

Overview

Package main is the entry point for the web application.

Directories

Path Synopsis
Package controller loads the routes for each of the controllers.
Package controller loads the routes for each of the controllers.
about
Package about displays the About page.
Package about displays the About page.
debug
Package debug provides access to pprof.
Package debug provides access to pprof.
home
Package home displays the Home page.
Package home displays the Home page.
login
Package login handles the user login.
Package login handles the user login.
notepad
Package notepad provides a simple CRUD application in a web page.
Package notepad provides a simple CRUD application in a web page.
register
Package register handles the user creation.
Package register handles the user creation.
static
Package static serves static files like CSS, JavaScript, and images.
Package static serves static files like CSS, JavaScript, and images.
status
Package status provides all the error pages like 404, 405, 500, 501, and the page when a CSRF token is invalid.
Package status provides all the error pages like 404, 405, 500, 501, and the page when a CSRF token is invalid.
lib
boot
Package boot handles the initialization of the web components.
Package boot handles the initialization of the web components.
env
Package env reads the application settings.
Package env reads the application settings.
flight
Package flight provides access to the application settings safely.
Package flight provides access to the application settings safely.
middleware
acl
Package acl provides http.Handlers to prevent access to pages for authenticated users and for non-authenticated users.
Package acl provides http.Handlers to prevent access to pages for authenticated users and for non-authenticated users.
logrequest
Package logrequest provides an http.Handler that logs when a request is made to the application and lists the remote address, the HTTP method, and the URL.
Package logrequest provides an http.Handler that logs when a request is made to the application and lists the remote address, the HTTP method, and the URL.
rest
Package rest allows changing the HTTP method via a query string.
Package rest allows changing the HTTP method via a query string.
model
note
Package note provides access to the note table in the MySQL database.
Package note provides access to the note table in the MySQL database.
user
Package user provides access to the user table in the MySQL database.
Package user provides access to the user table in the MySQL database.
userstatus
Package userstatus provides access to the user_status table in the MySQL database.
Package userstatus provides access to the user_status table in the MySQL database.
viewfunc
link
Package link provides a funcmap for html/template to generate a hyperlink.
Package link provides a funcmap for html/template to generate a hyperlink.
noescape
Package noescape provides a funcmap for html/template to prevent escaping a string.
Package noescape provides a funcmap for html/template to prevent escaping a string.
prettytime
Package prettytime provides a funcmap for html/template that displays time using an easy to read format.
Package prettytime provides a funcmap for html/template that displays time using an easy to read format.
viewmodify
authlevel
Package authlevel adds an AuthLevel variable to the view template.
Package authlevel adds an AuthLevel variable to the view template.
flash
Package flash adds the flashes to the view template.
Package flash adds the flashes to the view template.
uri
Package uri adds URI shortcuts to the view template.
Package uri adds URI shortcuts to the view template.

Jump to

Keyboard shortcuts

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