API server for trace.moe
- serve image search request
- crop black borders on search images
- rate limiting and user management
- serve server and database status
- create solr cores
- store and serve compressed hash files
- serve workers and mange video and hash status
- Node.js 14.x
- mariaDB 10.4.x
- apache solr 7.x
- redis
- git
- g++, cmake (for compiling OpenCV)
- pm2
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