Repository navigation
Self Hosting
EAnathos edited this page Sep 9, 2026
·
1 revision
ScholarWatch is open source and can be self-hosted. The easiest way is with Docker.
- Docker and Docker Compose
- A Discord bot token from the Discord Developer Portal
- A Discord application client ID
- Clone the repository
git clone https://github.com/EAnathos/scholarWatcherForDiscord.git
cd scholarWatcherForDiscord- Configure environment
Copy the example environment file and fill in your credentials:
cp .env.example .envRequired variables:
-
DISCORD_TOKEN— your bot token -
DISCORD_CLIENT_ID— your application client ID
The DATABASE_URL is set automatically by Docker Compose.
- Start the bot
docker compose up -dThis starts both the bot and a PostgreSQL 16 database. Data is persisted in a Docker volume.
- Register slash commands
For all guilds (may take up to an hour to propagate):
docker compose exec bot node dist/discord/deploy.jsFor a single guild (instant, good for testing):
docker compose exec bot node dist/discord/deploy.js --guild=YOUR_GUILD_IDgit pull
docker compose up -d --builddocker compose logs -f bot- Node.js (LTS recommended)
- PostgreSQL database
- Clone and install
git clone https://github.com/EAnathos/scholarWatcherForDiscord.git
cd scholarWatcherForDiscord
npm install- Configure environment
cp .env.example .envSet DISCORD_TOKEN, DISCORD_CLIENT_ID, and DATABASE_URL (e.g. postgresql://user:pass@localhost:5432/scholarwatch).
- Run database migrations
npm run prisma:migrate- Build and start
npm run build
npm startFor development with hot reload:
npm run dev- Register slash commands
npm run deploy:commandsOr for a single guild:
npm run deploy:commands -- --guild=YOUR_GUILD_ID