API server for trace.moe
- serve image search request
- crop black borders on search images
- rate limiting and user management
- serve index and database status
- store and serve compressed hash files
- distribute hash jobs to workers
- Node.js 14.x
- mariaDB 10.4.x
- redis
- liresolr
- g++, cmake (if you need to compile OpenCV)
Install Prerequisites first, then:
git clone https://github.com/soruly/trace.moe-api.git
cd trace.moe-api
npm install
- Copy
.env.example
to.env
- Edit
.env
as appropriate for your setup
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
To change the number of nodejs instances, edit ecosystem.config.json