A Discord bot with some other apps. Scaffolded from Turborepo Starter.
- apps/bot: The main discord bot, written with Discord.js. Hosted on Digital Ocean via Docker.
- apps/server The server, written with Express. Hosted on Digital Ocean via Docker.
- apps/web: The web app, built with Next.JS and hosted on Netlify.
- packages/*: Place to store shared code between my apps.
Make sure you have the following installed on your system:
- Docker
- Docker Compose
- Node v18 or higher, or nvm (Discord.js 13 requires Node v16.6+)
This runs the server, bot and web all in one go on your computer.
nvm use
yarn
yarn dev
To emulate production, run the Server and Bot in Dockerfiles.
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
For actual production servers, use downloaded images from GHCR (Github Container Registry).
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
docker-compose -f docker-compose.yml -f docker-compose.prod.yml logs -ft