2017-11-01 10:27:30 +00:00
|
|
|
# Installation
|
2017-07-17 03:05:44 +00:00
|
|
|
|
2017-11-01 10:27:30 +00:00
|
|
|
## Prerequisites
|
2017-07-17 03:05:44 +00:00
|
|
|
|
2017-11-08 11:18:26 +00:00
|
|
|
* Install [Ubuntu](https://www.ubuntu.com/) or [MacOS](https://en.wikipedia.org/wiki/MacOS)
|
2017-07-17 03:05:44 +00:00
|
|
|
* Install [Go](https://golang.org/dl/) (1.9 or higher)
|
2017-11-08 11:18:26 +00:00
|
|
|
* Install [TypeScript](https://www.typescriptlang.org/) (2.6 or higher)
|
2017-07-17 03:05:44 +00:00
|
|
|
|
2017-11-08 10:16:23 +00:00
|
|
|
## Download the repository
|
2017-07-17 03:05:44 +00:00
|
|
|
|
|
|
|
* `go get github.com/animenotifier/notify.moe`
|
|
|
|
|
2017-11-01 10:27:30 +00:00
|
|
|
## Build all
|
2017-07-17 03:05:44 +00:00
|
|
|
|
2017-11-08 10:16:23 +00:00
|
|
|
* `cd $GOPATH/src/github.com/animenotifier/notify.moe`
|
|
|
|
* `make tools` to install [pack](https://github.com/aerogo/pack) & [run](https://github.com/aerogo/run)
|
|
|
|
* `make all`
|
|
|
|
|
2017-11-08 11:11:20 +00:00
|
|
|
## Browser
|
|
|
|
|
|
|
|
* `make ports` to set up local port forwarding *(80 to 4000, 443 to 4001)*
|
|
|
|
* `make browser` to start Google Chrome
|
|
|
|
|
2017-11-08 10:16:23 +00:00
|
|
|
## Database
|
|
|
|
|
|
|
|
* `git clone https://github.com/animenotifier/database ~/.aero/db/arn`
|
2017-07-17 03:05:44 +00:00
|
|
|
|
2017-11-01 10:27:30 +00:00
|
|
|
## Hosts
|
2017-10-25 22:04:32 +00:00
|
|
|
|
|
|
|
* Add `127.0.0.1 beta.notify.moe` to `/etc/hosts`
|
|
|
|
|
2017-11-01 10:27:30 +00:00
|
|
|
## Run
|
2017-07-17 03:05:44 +00:00
|
|
|
|
|
|
|
* Start the web server in notify.moe directory: `run`
|
|
|
|
* Open `https://beta.notify.moe` which should now resolve to localhost
|