From eb84799c2bf6dd2b43b9546f0da3dcbbecc35aa6 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sat, 23 Jun 2018 14:54:40 +0900 Subject: [PATCH] Updated docs --- README.md | 24 ++++++++++++++++++++++++ main.go | 5 +---- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0eadecd..39d5c89 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,30 @@ Study Kanji by testing your own vocabulary list. +## Installation + +Install the pre-requisites: + +``` +npm install -g typescript +go get golang.org/x/tools/cmd/goimports +go get github.com/aerogo/pack +``` + +Clone the repo: + +``` +go get github.com/konnakanji/konnakanji +``` + +Run TypeScript compiler: + +``` +tsc +``` + +Use the [run](https://github.com/aerogo/run) command to start the server. + [godoc-image]: https://godoc.org/github.com/konnakanji/konnakanji?status.svg [godoc-url]: https://godoc.org/github.com/konnakanji/konnakanji [goreportcard-image]: https://goreportcard.com/badge/github.com/konnakanji/konnakanji diff --git a/main.go b/main.go index f30649f..c27f1ca 100644 --- a/main.go +++ b/main.go @@ -14,10 +14,7 @@ func main() { } func configure(app *aero.Application) *aero.Application { - app.Security.Load( - "security/default/server.crt", - "security/default/server.key", - ) + app.Security.Load("security/server.crt", "security/server.key") appCode := func(ctx *aero.Context) string { return ctx.HTML(components.Layout(ctx))