soruly / trace.moe-api

API server for serving backend requests for trace.moe
https://soruly.github.io/trace.moe-api/
MIT License
123 stars 12 forks source link

trace.moe-api

License GitHub Workflow Status Codecov Docker Docker Image Size Discord

API server for trace.moe

API Docs

Features

Prerequisites

Install

Install Prerequisites first, then:

git clone https://github.com/soruly/trace.moe-api.git
cd trace.moe-api
npm install

Configuration

Start server

You can use pm2 to run this in background in cluster mode.

Use below commands to start / restart / stop server.

npm run start
npm run stop
npm run reload
npm run restart
npm run delete

How to begin hashing

By default, it will scan the VIDEO_PATH every minute for new video files (.mp4 or .mkv). You can manually trigger a scan by calling this url

curl http://localhost:3001/scan