Merge pull request #28 from hitjim/contrib-guide

clarify steps for setting up development environment, added comments
This commit is contained in:
Brian Buller 2017-11-27 09:48:39 -06:00 committed by GitHub
commit 343b0fbb55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -45,7 +45,16 @@ go get github.com/devict/ictgj-voting
```
## Developing/Contributing Notes
## Developing/Contributing
### Setup
1. Fork this repo, rather than cloning directly.
1. Run `go get github.com/mjibson/esc`
1. Then `go get` your github fork, similarly to the command in the Building section above.
1. Run `go generate`
1. Run `go build`
1. Make and commit your changes, then submit a Pull Request (PR) through GitHub from your fork to `github.com/devict/ictgj-voting`
### Notes
* Pass in the `-dev` flag to enable development mode (load assets from the file system instead of embedded).
* After making changes to assets (templates, javascript, css) be sure to run `go generate` before `go build` - this regenerates the `assets.go` file
* Please use the go tooling to match the standard go coding style.

View File

@ -20,7 +20,10 @@ import (
"github.com/justinas/alice"
)
// AppName Application name
const AppName = "gjvote"
// DbName Database name, which is <AppName>.db
const DbName = AppName + ".db"
// pageData is stuff that changes per request