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

Get Started

TheSnowfield edited this page Aug 21, 2020 · 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

Maybe you need install node-pre-gyp to install sqlite3 and sqlite-async node module

$ npm i -g node-pre-gyp

Compile the project

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

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