Update readme and tweak build

- Tweaked the build to copy `settings_example.json` to `settings.json` if
  it doesn't exist.
- Updated the readme to reflect changes with modules and the Makefile.
This commit is contained in:
Zorchenhimer 2019-04-04 11:19:57 -04:00
parent 1a5d4c89ec
commit 0c9fa9f569
2 changed files with 10 additions and 5 deletions

View File

@ -2,7 +2,7 @@ TAGS=
.PHONY: fmt vet get clean dev setdev test
all: fmt vet test MovieNight MovieNight.exe static/main.wasm
all: fmt vet test MovieNight MovieNight.exe static/main.wasm settings.json
setdev:
$(eval export TAGS=-tags "dev")
@ -33,3 +33,8 @@ vet:
test:
go test $(TAGS) ./...
# Do not put settings_example.json here as a prereq to avoid overwriting
# the settings if the example is updated.
settings.json:
cp settings_example.json settings.json

View File

@ -16,11 +16,11 @@ online.
To just download and run:
```bash
$ go get -u -v github.com/zorchenhimer/MovieNight
$ cd $GOROOT/src/zorchenhimer/MovieNight
$ git clone https://github.com/zorchenhimer/MovieNight
$ cd MovieNight
$ make get # only needs to be run once
$ make
$ cp settings_example.json settings.json
$ MovieNight -l :8089 -k longSecurityKey
$ ./MovieNight
```
## Usage