/FoxyWebsite

💻 Foxy's Website where you can use dashboard, learn more about her and add her in your server

Primary LanguageTypeScriptGNU Affero General Public License v3.0AGPL-3.0

💻 Foxy Website


✨ | Requirements

  • NodeJS v16.x or higher
  • Git
  • npm

Configuring the environment

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>

Running the server

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