Updated installation instructions

This commit is contained in:
Eduard Urbach 2017-11-05 16:50:32 +01:00
parent 331da5044e
commit 979991849c
2 changed files with 8 additions and 1 deletions

View File

@ -30,6 +30,11 @@
* Start Chrome via `google-chrome --ignore-certificate-errors`
## Database
* `go get github.com/animenotifier/database`
* `ln -s $GOPATH/src/github.com/animenotifier/database ~/.aero/db/arn`
## API keys
* Get a Google OAuth 2.0 client key & secret from [console.developers.google.com](https://console.developers.google.com)

View File

@ -10,7 +10,6 @@ func main() {
defer arn.Node.Close()
arn.DB.Clear("EmailToUser")
arn.DB.Clear("GoogleToUser")
// Iterate over the stream
count := 0
@ -30,6 +29,9 @@ func main() {
user.AgeRange = arn.UserAgeRange{}
user.Location = arn.UserLocation{}
user.PushSubscriptions().Items = []*arn.PushSubscription{}
user.PushSubscriptions().Save()
// Save in DB
user.Save()
}