- NodeJS v18.x or higher
- Git
- yarn or npm
You need to install Visual Studio Code or another IDE
Create a `config.json` file with these values:
{
"url": "website url (must contains http or https)",
"oauth": {
"clientId": "bot id",
"ownerId": "your discord id",
"callbackURL": "http://url/login/callback",
"scopes": [
"identify",
"guilds",
"email"
]
},
"session": {
"cookie": {
"maxAge": 604800000
}
}
}
Install TSC in your computer
$ npm install -g typescript
Install all website dependencies
$ npm install
In start.ts you can change the HTTP port.
import { App } from './client/app';
const client = new App(3000);
client.start();
Compile the server
$ npm run build
Run the server
$ npm run start