admin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

README

Admin Frontend

This module serves static assets. The static assets are built using Typescript and SASS into the ./build folder, and then go-bindata is used to generate a Go file with all assets embedded into it. The Naga module in this folder is responsible for mapping HTTP requests to the embedded files.

Development

Note: make sure you have ./node_modules/.bin on your path, otherwise you will need to run ./node_modules/.bin/gulp instead of gulp below:

gulp         # compile css, js, html, and bindata
gulp watch   # recompile css, js, html, and bindata on files changes
gulp css     # compile sass to css
gulp js      # compile typescript to javascript
gulp html    # copy html and images to build dir

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	Router *router.Module
}

func (*Module) Init

func (m *Module) Init(c *service.Config)

func (*Module) ServeHTTP

func (m *Module) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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