Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Get Started

TheSnowfield edited this page May 15, 2021 · 8 revisions

Install node

BotArcAPI needs NodeJS to working correctly

Debian 9 or 10

$ sudo apt update 
$ sudo apt install nodejs npm

Windows

Click here to download latest stable version

You might need to install node-pre-gyp to compile the native extensions such as sqlite3 and archash4fall.

$ npm i -g node-pre-gyp

Compile the project

$ cd ./botarcapi \
  && npm i \
  && npm i -g typescript \
  && tsc --build .

Start service

$ npm start

Configs

You could edit source/corefunc/config.ts directly or using environment variables via batch or sh scripts.

For example (windows)

@echo off
set BOTARCAPI_CONFIG={"SERVER_PORT": 80, "BOTARCAPI_VERSTR": "Hello"}
npm start
pause

Click here to view all available field

Clone this wiki locally