2019-05-06 16:24:44 +09:00
|
|
|
# notify.moe
|
2017-06-11 11:51:31 +02:00
|
|
|
|
2019-05-06 16:24:44 +09:00
|
|
|
[![Godoc][godoc-image]][godoc-url]
|
|
|
|
[![Report][report-image]][report-url]
|
2019-04-29 00:56:58 +09:00
|
|
|
[![Tests][tests-image]][tests-url]
|
2019-05-06 16:24:44 +09:00
|
|
|
[![Coverage][coverage-image]][coverage-url]
|
2019-05-24 14:06:40 +09:00
|
|
|
[![Sponsor][sponsor-image]][sponsor-url]
|
2018-04-26 11:20:20 +02:00
|
|
|
|
2019-04-19 19:24:53 +09:00
|
|
|
## How to
|
|
|
|
|
|
|
|
### Prerequisites
|
2018-04-10 12:54:48 +02:00
|
|
|
|
2019-04-25 09:26:03 +09:00
|
|
|
* Install [Docker](https://www.docker.com/get-started)
|
|
|
|
* Install [Docker Compose](https://docs.docker.com/compose/install/)
|
2018-04-10 12:54:48 +02:00
|
|
|
|
2019-04-19 19:24:53 +09:00
|
|
|
### Installation
|
2018-04-10 12:54:48 +02:00
|
|
|
|
2019-04-25 09:26:03 +09:00
|
|
|
Download the source code:
|
2019-04-18 20:19:15 +09:00
|
|
|
|
2019-04-24 07:57:48 +09:00
|
|
|
```shell
|
2019-04-18 20:19:15 +09:00
|
|
|
git clone https://github.com/animenotifier/notify.moe.git && cd notify.moe
|
|
|
|
```
|
|
|
|
|
2019-04-25 09:26:03 +09:00
|
|
|
Download the developer tools:
|
2019-04-14 16:28:30 +09:00
|
|
|
|
2019-04-24 07:57:48 +09:00
|
|
|
```shell
|
2019-04-14 16:28:30 +09:00
|
|
|
docker pull animenotifier/notify.moe
|
|
|
|
```
|
|
|
|
|
2019-04-25 09:26:03 +09:00
|
|
|
Start the developer tools:
|
2019-04-14 16:28:30 +09:00
|
|
|
|
2019-04-24 07:57:48 +09:00
|
|
|
```shell
|
2019-04-25 09:00:53 +09:00
|
|
|
docker-compose up -d
|
2018-04-10 12:54:48 +02:00
|
|
|
```
|
|
|
|
|
2019-04-25 09:26:03 +09:00
|
|
|
Attach to a terminal:
|
2019-04-18 19:29:33 +09:00
|
|
|
|
2019-04-25 09:00:53 +09:00
|
|
|
```shell
|
|
|
|
docker attach notify.moe
|
|
|
|
```
|
2018-04-10 12:54:48 +02:00
|
|
|
|
2019-04-25 09:00:53 +09:00
|
|
|
### Start the server
|
2019-04-24 07:57:48 +09:00
|
|
|
|
2019-04-25 09:26:03 +09:00
|
|
|
* Enter the notify.moe directory: `cd notify.moe`
|
2019-04-25 21:34:50 +09:00
|
|
|
* Download dependencies: `go mod download`
|
2019-04-25 09:26:03 +09:00
|
|
|
* Compile TypeScript files using: `tsc`
|
|
|
|
* Start the web server using: `run`
|
2019-04-18 19:29:33 +09:00
|
|
|
|
2019-04-19 19:24:53 +09:00
|
|
|
### Networking
|
2019-04-18 19:34:46 +09:00
|
|
|
|
2019-04-25 09:26:03 +09:00
|
|
|
* Add `beta.notify.moe 127.0.0.1` to your `hosts` file
|
2019-04-18 19:34:46 +09:00
|
|
|
|
2019-04-19 19:24:53 +09:00
|
|
|
### In your browser
|
2019-04-18 19:29:33 +09:00
|
|
|
|
2019-04-25 09:26:03 +09:00
|
|
|
* Open the settings, search for certificates
|
|
|
|
* Import the file `security/default/root.crt` as a trusted Root authority
|
|
|
|
* Open `https://beta.notify.moe`
|
2018-04-26 11:20:20 +02:00
|
|
|
|
2019-04-25 09:00:53 +09:00
|
|
|
### Tips
|
|
|
|
|
|
|
|
* You can detach from the terminal using `Ctrl P -> Ctrl Q`.
|
2019-04-25 09:12:10 +09:00
|
|
|
* If you need to shutdown everything, use `docker-compose down`.
|
2019-04-25 09:00:53 +09:00
|
|
|
* 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.
|
2019-04-25 09:26:03 +09:00
|
|
|
* The `run` binary is a file watcher that will restart the web server when it detects code changes.
|
|
|
|
* File modification events [don't work](https://github.com/docker/for-win/issues/56) on Docker for Windows.
|
2019-04-25 09:00:53 +09:00
|
|
|
* Use an editor like [Visual Studio Code](http://code.visualstudio.com) to access the source code on the host.
|
2019-04-25 09:26:03 +09:00
|
|
|
* To automatically compile TypeScript files in VS Code, press `Ctrl Shift B` and select `tsc: watch`.
|
|
|
|
* Use a Linux system for maximum performance.
|
2019-04-25 09:00:53 +09:00
|
|
|
|
2019-04-29 07:40:02 +09:00
|
|
|
### What now?
|
|
|
|
|
|
|
|
* Try the [example task for newcomers](docs/new-contributor-task.md).
|
|
|
|
* 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).
|
2019-04-29 07:41:42 +09:00
|
|
|
* Make some changes and upload them to your fork.
|
|
|
|
* Create a pull request on this repository (with the diffs of your fork).
|
2019-04-29 07:40:02 +09:00
|
|
|
|
2019-04-19 21:10:58 +09:00
|
|
|
## Find us
|
2019-04-19 19:24:53 +09:00
|
|
|
|
|
|
|
* [Discord](https://discord.gg/0kimAmMCeXGXuzNF)
|
|
|
|
* [Facebook](https://www.facebook.com/animenotifier)
|
|
|
|
* [Twitter](https://twitter.com/animenotifier)
|
2019-04-25 09:00:53 +09:00
|
|
|
* [Docker](https://hub.docker.com/r/animenotifier/notify.moe)
|
2019-04-19 19:24:53 +09:00
|
|
|
* [GitHub](https://github.com/animenotifier/notify.moe)
|
|
|
|
|
|
|
|
## Contributing
|
|
|
|
|
|
|
|
Please read [CONTRIBUTING.md](https://github.com/animenotifier/notify.moe/blob/go/CONTRIBUTING.md) for details on how to contribute to this project.
|
|
|
|
|
2019-05-06 21:17:07 +09:00
|
|
|
## Statistics
|
|
|
|
|
|
|
|

|
|
|
|

|
|
|
|

|
|
|
|

|
|
|
|
|
2019-05-06 19:40:36 +09:00
|
|
|
## Style
|
2019-05-06 16:24:44 +09:00
|
|
|
|
|
|
|
Please take a look at the [style guidelines](https://github.com/akyoto/quality/blob/master/STYLE.md) if you'd like to make a pull request.
|
|
|
|
|
2019-05-06 19:40:36 +09:00
|
|
|
## Sponsors
|
2019-05-06 16:24:44 +09:00
|
|
|
|
2019-05-24 13:52:45 +09:00
|
|
|
| [](https://github.com/cedricfung) | [](https://github.com/soulcramer) | [](https://twitter.com/eduardurbach) |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| [Cedric Fung](https://github.com/cedricfung) | [Scott Rayapoullé](https://github.com/soulcramer) | [Eduard Urbach](https://eduardurbach.com) |
|
2018-06-30 14:16:29 +09:00
|
|
|
|
2019-05-24 14:06:40 +09:00
|
|
|
Want to see [your own name here?](https://github.com/users/akyoto/sponsorship)
|
2018-06-30 14:16:29 +09:00
|
|
|
|
2019-05-06 19:40:36 +09:00
|
|
|
[godoc-image]: https://godoc.org/github.com/animenotifier/notify.moe?status.svg
|
|
|
|
[godoc-url]: https://godoc.org/github.com/animenotifier/notify.moe
|
|
|
|
[report-image]: https://goreportcard.com/badge/github.com/animenotifier/notify.moe
|
|
|
|
[report-url]: https://goreportcard.com/report/github.com/animenotifier/notify.moe
|
|
|
|
[tests-image]: https://cloud.drone.io/api/badges/animenotifier/notify.moe/status.svg
|
|
|
|
[tests-url]: https://cloud.drone.io/animenotifier/notify.moe
|
|
|
|
[coverage-image]: https://codecov.io/gh/animenotifier/notify.moe/graph/badge.svg
|
|
|
|
[coverage-url]: https://codecov.io/gh/animenotifier/notify.moe
|
2019-05-24 14:06:40 +09:00
|
|
|
[sponsor-image]: https://img.shields.io/badge/github-donate-green.svg
|
|
|
|
[sponsor-url]: https://github.com/users/akyoto/sponsorship
|