💃 Anime tracker, database and community. 208 Commits
2017-06-21 20:10:12 +02:00
.vscode Started working on scripts 2017-06-19 16:20:46 +02:00
auth Added Discord bot 2017-06-20 18:06:41 +02:00
db Added gitignore for db folder 2017-06-21 19:34:59 +02:00
images Renamed no-gravatar.svg to no-avatar.svg 2017-06-18 14:07:38 +02:00
jobs Fixed sync-anime 2017-06-21 20:10:12 +02:00
layout Use /scripts to avoid CF caching 2017-06-21 02:02:30 +02:00
logs Added logs directory to git 2017-06-16 13:49:22 +02:00
middleware Added extra navigation and new pages 2017-06-18 17:16:40 +02:00
mixins Can edit anime list items now 2017-06-21 14:00:52 +02:00
pages Can edit anime list items now 2017-06-21 14:00:52 +02:00
patches Improved makefile 2017-06-16 15:42:22 +02:00
scripts Added gitignore for db folder 2017-06-21 19:34:59 +02:00
security Cleanup 2017-06-17 00:49:09 +02:00
styles Improved menu 2017-06-21 03:05:34 +02:00
utils Heavily improved sessions 2017-06-17 22:19:26 +02:00
.editorconfig Added editor config 2016-11-02 22:52:11 +09:00
.gitignore Added gitignore for db folder 2017-06-21 19:34:59 +02:00
assets.go Use /scripts to avoid CF caching 2017-06-21 02:02:30 +02:00
config.json Added stylish mountable effect 2017-06-20 20:13:04 +02:00
main.go Renamed page to popularanime 2017-06-21 03:46:15 +02:00
makefile Fixed icons on dashboard 2017-06-18 12:50:15 +02:00
README.md Changed installation order 2017-06-21 18:48:09 +02:00
reset.scarlet Added extra navigation and new pages 2017-06-18 17:16:40 +02:00
rewrite.go Switched to net/http 2017-05-30 00:07:05 +02:00
tests.go Can edit anime list items now 2017-06-21 14:00:52 +02:00
tsconfig.json Started working on scripts 2017-06-19 16:20:46 +02:00

Anime Notifier

Installation

Prerequisites

  • Install a Debian based operating system
  • Install Go (1.9 or higher)
  • Install Aerospike (3.14.0 or higher)

Database

  • Remove all namespaces in /etc/aerospike/aerospike.conf
  • Add a namespace called arn:
namespace arn {
    storage-engine device {
        file /home/YOUR_NAME/YOUR_PATH/notify.moe/db/arn-dev.dat
        filesize 60M
        data-in-memory true

        # Maximum object size. 128K is ideal for SSDs but we need 1M for search indices.
        write-block-size 1M

        # Write block size x Post write queue = Cache memory usage (for write block buffers)
        post-write-queue 16
    }
}
  • Start the database using sudo service aerospike start
  • Confirm that the status is "green": sudo service aerospike status

Hosts

  • Add 127.0.0.1 arn-db to /etc/hosts
  • Add 127.0.0.1 beta.notify.moe to /etc/hosts

Download repository

  • go get github.com/animenotifier/notify.moe

Install pack & run

  • go get github.com/aerogo/pack
  • go get github.com/aerogo/run
  • go install github.com/aerogo/pack
  • go install github.com/aerogo/run

Build all

  • Run make all
  • Run make ports to set up local port forwarding (80 to 4000, 443 to 4001)
  • You should be able to start the server using run now

HTTPS

  • Create the certificate notify.moe/security/fullchain.pem (domain: beta.notify.moe)
  • Create the private key notify.moe/security/privkey.pem

API keys

{
	"google": {
		"id": "YOUR_KEY",
		"secret": "YOUR_SECRET"
	}
}

Fetch data

  • Run jobs/sync-anime/sync-anime from this repository to fetch anime data

Run

  • Start the web server in notify.moe directory: run
  • Open https://beta.notify.moe which should now resolve to localhost