💃 Anime tracker, database and community. 94 Commits
2017-06-11 11:51:31 +02:00
images Added default cover image 2017-06-06 16:59:04 +02:00
jobs Implemented ratings UI 2017-06-08 11:51:34 +02:00
layout Minor changes 2017-06-04 01:17:00 +02:00
mixins Updated image sizes 2017-06-10 02:35:07 +02:00
pages Cleanup 2017-06-11 11:13:59 +02:00
patches Added clear-sessions patch 2017-06-11 11:22:04 +02:00
scripts Starting to add scripts 2016-12-03 00:23:05 +09:00
styles Updated image sizes 2017-06-10 02:35:07 +02:00
temp New directory structure 2017-06-07 23:37:13 +02:00
utils New directory structure 2017-06-07 23:37:13 +02:00
.editorconfig Added editor config 2016-11-02 22:52:11 +09:00
.gitignore New directory structure 2017-06-07 23:37:13 +02:00
api-old.go Minor updates 2017-06-10 02:19:31 +02:00
config.json Basics of Google login are implemented 2017-06-07 18:06:57 +02:00
deploy.sh Implemented ratings UI 2017-06-08 11:51:34 +02:00
google.go Cleanup 2017-06-11 11:13:59 +02:00
helper.go Implemented forum overview 2016-11-19 02:58:00 +09:00
logger.go Added a few logs 2017-06-10 20:45:30 +02:00
login.go Cleanup 2017-06-11 11:13:59 +02:00
main.go Cleanup 2017-06-11 11:13:59 +02:00
README.md Added basic installation instructions 2017-06-11 11:51:31 +02:00
rewrite.go Switched to net/http 2017-05-30 00:07:05 +02:00
tsconfig.json Starting to add scripts 2016-12-03 00:23:05 +09:00

Anime Notifier

Installation

Prerequisites

  • Install Go (1.8.3 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 50M
        data-in-memory false

        # Maximum object size. 128K is ideal for SSDs
        write-block-size 128K

        # Write block size x Post write queue = Cache size (for write block buffers)
        post-write-queue 128
    }
}
  • 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
  • Run these commands to forward ports 80/443 to 4000/4001:
sudo iptables -t nat -A OUTPUT -o lo -p tcp --dport 80 -j REDIRECT --to-port 4000
sudo iptables -t nat -A OUTPUT -o lo -p tcp --dport 443 -j REDIRECT --to-port 4001

Download repository

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

HTTPS

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

API keys

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

Fetch data

  • Build & run jobs/sync-anime/sync-anime from this repository to fetch anime data