notify.moe

command module
v1.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2019 License: MIT Imports: 21 Imported by: 0

README

Anime Notifier

Godoc reference Go report card Tests Code coverage License

How to

Prerequisites
Installation

Download the source code:

git clone https://github.com/animenotifier/notify.moe.git && cd notify.moe

Download the developer tools:

docker pull animenotifier/notify.moe

Start the developer tools:

docker-compose up -d

Attach to a terminal:

docker attach notify.moe
Start the server
  • Enter the notify.moe directory: cd notify.moe
  • Download dependencies: go mod download
  • Compile TypeScript files using: tsc
  • Start the web server using: run
Networking
  • Add beta.notify.moe 127.0.0.1 to your hosts file
In your browser
  • Open the settings, search for certificates
  • Import the file security/default/root.crt as a trusted Root authority
  • Open https://beta.notify.moe
Tips
  • You can detach from the terminal using Ctrl P -> Ctrl Q.
  • If you need to shutdown everything, use docker-compose down.
  • Your home directory is mounted as /my inside Docker.
  • Fork the notify.moe repository and upload your changes to the fork.
  • Clone all the repositories you use into a projects directory inside your home files.
  • The run binary is a file watcher that will restart the web server when it detects code changes.
  • File modification events don't work on Docker for Windows.
  • Use an editor like Visual Studio Code to access the source code on the host.
  • To automatically compile TypeScript files in VS Code, press Ctrl Shift B and select tsc: watch.
  • Use a Linux system for maximum performance.
What now?
  • Try the example task for newcomers.
  • Install Pug/Jade and Stylus extensions for your editor.
  • If you're not using VS Code, map Pug/Jade to .pixy and Stylus to .scarlet files (they're similar).
  • Make some changes and upload them to your fork.
  • Create a pull request on this repository (with the diffs of your fork).
Bookmark

Create a bookmark in your browser and set this code as the URL:

javascript:(() => {
	location = location.href.indexOf('://beta.') === -1 ?
	location.href.replace('://', '://beta.') : location.href.replace('://beta.', '://');
})();

Clicking this bookmark will let you switch between notify.moe (live) and beta.notify.moe (development).

Find us

Contributing

Please read CONTRIBUTING.md for details on how to contribute to this project.

License

This project is licensed under the MIT License.

Author

Eduard Urbach on Twitter
Eduard Urbach

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
bots
discord command
anime-ratings command
mal-download command
mal-parse command
mal-sync command
refresh-games command
sync-shoboi command
test command
twist command
amv
me
sse
patches
add-item command
add-shop-items command
add-song-titles command
anime-status command
backlog command
change-role command
clear-sessions command
delete-amv-tags command
delete-balance command
delete-pro command
fix-genres command
fix-image-ids command
fix-theme command
kitsu-anilist command
post-sort-date command
post-texts command
show-season command
thread-posts command
update-amv-info command
user-references command
gql

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL