DEV Community

with-heart
with-heart

Posted on • Updated on

High level technical overview

To build discord-server-info, we'll need a few separate pieces:

  • bot
  • db
  • app

A diagram showing the bot, db, and app pieces and how they relate to each other

bot will be a Discord bot. This bot reads data from the servers it's connected to and stores it in our database (db).

db is a Prisma database that provides an API for storing and accessing server data.

app is a Next.js application that allows users to authenticate with Discord and explore data from their servers.

If you're wondering why we need this structure rather than having the app read data directly from the Discord API, it's because the Discord API intentionally provides access to very little data. A bot account is required for full access.

The discord-server-info repo will eventually be a monorepo with a package for each piece.

Top comments (0)