Added installation script for developers

This commit is contained in:
2018-04-10 12:37:59 +02:00
parent 65a16ce809
commit a7012b6e8d
3 changed files with 50 additions and 23 deletions

View File

@ -11,7 +11,7 @@
* Install [TypeScript](https://www.typescriptlang.org/) (2.6 or higher)
* Install [Git LFS](https://git-lfs.github.com/)
## Check
## Confirm that prerequisites are installed
```bash
go version
@ -19,29 +19,13 @@ tsc --version
git lfs version
```
## Download the repository
## Start the installation
* `go get github.com/animenotifier/notify.moe/...`
```bash
curl -s https://raw.githubusercontent.com/animenotifier/notify.moe/go/install.sh | sudo bash
```
## Build all
* `cd $GOPATH/src/github.com/animenotifier/notify.moe`
* `make all`
## Browser
* `make ports` to set up local port forwarding *(80 to 4000, 443 to 4001)*
* `make browser` to start Google Chrome
## Database
* `git clone https://github.com/animenotifier/database ~/.aero/db/arn`
## Hosts
* Add `127.0.0.1 beta.notify.moe` to `/etc/hosts`
## Run
## Run the server
* Start the web server in notify.moe directory: `run`
* Open `https://beta.notify.moe` which should now resolve to localhost