The dashboard for PolyBot built using Next.JS. This app is built as a part of the larger PolyBot Project.
https://polybot-dashboard.vercel.app/
- Node.js (v14 or higher)
- npm (v6 or higher)
- A running instance of PolyBot
- PolyBot API (see installation instructions below)
- Neon Postgres database (see setup instructions below)
- Sign up for a Neon account at https://neon.tech if you haven't already.
- Create a new project in your Neon dashboard.
- In your project, create a new database for PolyBot Dashboard.
- Note down the connection string provided by Neon. It should look something like this:
postgres://user:password@database-name.region-name.aws.neon.tech/neondb?options
This Database will be used for user authentication
-
First, clone and set up the PolyBot API repository:
git clone https://github.com/anmolplayzz/polybot-api.git cd polybot-api npm install # Follow the setup instructions in the polybot-api README -
Clone the PolyBot Dashboard repository:
git clone https://github.com/anmolplayzz/polybot-dashboard.git -
Navigate to the project directory:
cd polybot-dashboard -
Install dependencies:
npm install -
Create a
.envfile in the root directory and add your configuration:TOKEN="Discord Bot Token" CLIENT_ID="Discord Bot Client ID" CLIENT_SECRET="Discord Bot Client Secret" DATABASE_URL="Neon Serverless PostgreSQL URI" MONGODB_URI="MongoDB URI (From the main PolyBot Project)" PB_API="URL to PolyBot API" REDIRECT_URL="Redirect URL (needs to be setup in the developer dashboard at discord.dev too) -
Build the dashboard:
npm run build -
Start the dashboard:
npm start -
Ensure that your PolyBot API is running.
-
The dashboard will be available at
http://localhost:3000
Note: it is highly recommended to host the dashboard on a serverless platform like vercel or netlify (both are free).
Contributions are welcome! Please feel free to submit a Pull Request.
- Next.JS and React
- Discord.JS
- Lucia Auth
- Arctic
This project is licensed under the MIT License / see the LICENSE file for details.
If you encounter any problems or have any questions about setup, please open an issue on this repository or join the official support server and report it there.