- NodeJS v16.x or higher
- Git
- npm
You need to install Visual Studio Code or another IDE
Configuring .env
Create a .env file with these values:
CLIENT_SECRET=<your-bot-secret>
MONGO_URI=<your-mongodb-uri>
BOT_TOKEN=<your-bot-token>
REPORT=<your-report-webhook>
SUGGESTION=<your-suggestion-webhook>
Install TSC in your computer
$ npm install -g typescript
Install all website dependencies
$ npm install
In start.ts you can change the HTTP port, but I prefer 8081
import { App } from './client/app';
const client = new App(8081);
client.start();
Compile the server
$ npm run build
Run the server
$ npm run start