Skip to content

Installation

Itzbenz edited this page Sep 6, 2022 · 13 revisions

Installation

You can deploy this on Replit or Yeet Hosting

Run on Repl.it

or alternatively, you can self-host it yourself

Requirements:

  • at least Node.js ^12.x.x
  • Ubuntu ^18.04
  • Debian ^9
  • Cent-OS and FreeBSD supported, however, we dont cover this on documentation
  • Windows is partially supported
  • AVX compatible CPU

but seriously, if you host this from windows, you deserve to go to hell.

Recommendations:

  • Redis server
  • A domain
  • SSL

Step 0:

Download the code

git clone https://github.com/o7-Fire/NodeNsfwJSAPI.git
cd NodeNsfwJSAPI
  • or use wget and unzip
  • or use the docker image

Step 1:

Download node.js

curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - && apt install -y nodejs

Step 2:

Install Dependency

npm i

Step 3:

Run

npm start
  • Optional: configure .env

Congratulations, you have a working NSFW detection API now

Clone this wiki locally