Built with Next.js, Next-Auth, and MongodDB
Works on yarn v3.5.1 and node v16.20.1
yarnSet up a MongoDB database either locally or with MongoDB Atlas for free.
Copy the env.local.example file in this directory to .env.local (which will be ignored by Git):
cp .env.local.example .env.localSet each variable on .env.local:
MONGODB_URI- Your MongoDB connection string.DISCORD_CLIENT_ID&&DISCORD_CLIENT_SECRET- Needed for Next Auth API access, checkNext-Authfor more details on how to setup.DISCORD_BOT_TOKEN- Required for sending messages to users.
yarn
yarn dev
Your app should be up and running on http://localhost:3000!
You will either see a message stating "You are connected to MongoDB" or "You are NOT connected to MongoDB". Ensure that you have provided the correct MONGODB_URI environment variable.