Skip to content

💻 Configure, add and learn more about Foxy on her website!

License

Notifications You must be signed in to change notification settings

FoxyTheBot/FoxyWebsite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💻 Foxy Website


✨ | Requirements

  • NodeJS v18.x or higher
  • Git
  • yarn or npm

Configuring the environment

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
        }
    }
}

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.

import { App } from './client/app';
const client = new App(3000);
client.start();

Compile the server

$ npm run build

Run the server

$ npm run start