bubbzDotDev / bot-dashboard-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Announcement Bot Dashboard (API)

Installation

$ npm install

Configure .env file

# Server Settings
PORT=
(Locally, it will be 3001)

# Session/Cookie Settings
COOKIE_SECRET=

# Discord App Credentials
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
DISCORD_REDIRECT_URL=
(Locally, it will be http://localhost:3001/api/auth/redirect)
DISCORD_BOT_TOKEN=

# MySQL Server Settings
MYSQL_DB_HOST=
MYSQL_DB_PORT=
MYSQL_DB_USERNAME=
MYSQL_DB_PASSWORD=
MYSQL_DB_DATABASE=
MYSQL_DB_SYNCHRONIZE=  #true in development; false in production

# Frontend
BOT_FRONTEND_HOST=
(Locally, it will be http://localhost:5173)

#Encryption
PASSWORD=

Running the app

# development
$ npm run start

# watch mode
$ npm run dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Special Thanks

Anson The Developer: Anson's 2022 Discord Bot Dashboard Tutorial got this project off the ground.

About


Languages

Language:TypeScript 97.5%Language:JavaScript 2.4%Language:Procfile 0.1%