||8 months ago|
|api||8 months ago|
|custom||8 months ago|
|db||8 months ago|
|public||8 months ago|
|types||8 months ago|
|views||8 months ago|
|.gitignore||8 months ago|
|LICENSE||8 months ago|
|Makefile||8 months ago|
|go.mod||8 months ago|
|go.sum||8 months ago|
|main.go||8 months ago|
|readme.md||8 months ago|
watershed is an application similar to Sonarr, however it is written in Go.
Build and run
First create a .env and enter
PORT=:2255 or whatever your desired port is. If no .env is found the application will default to port 3000.
To install run
make and this will download all deps in go.mod then run
sudo make install and it will place the watershed binary in your /usr/local/bin directory.
Additional files will be "installed" to /usr/local/share/watershed
Tests and test coverage
make test and
sudo make clean or whatever the windows equivalent is
Once the application is running you can go to http://localhost:whatever/ and you will see the index page. You may now search using nyaa.si, yts.mx, or Lime torrents.
You can run
curl -X GET "http://localhost:<whatever>/search?media=zoombies&feed=limetorrents&limit=5" | jq '.' to return a JSON object with results from that specific tracker.
Additionally right now you can run
curl -X GET "http://localhost:<whatever>/scan?feed=rarbg" | jq '.' this will get the current rarbg RSS feed and return it as a JSON object -- it will also write results to a SQLite DB (reason for this to be implemented later)