This is a T3 Stack project bootstrapped with create-t3-app.
A chat application, written in Next.js, with the use of tRPC, NextAuth.js, Tailwind CSS, Prisma.
Prior to setup, create an .env file based on the .env.example.
Then proceed:
pnpm install- Create PostgreSQL database and add connection url as value for
DATABASE_URL npx prisma db push- Generate a secret value for
NEXTAUTH_SECRET. You can generate a new secret on the command line with:openssl rand -base64 32 - Create a Google OAuth App and add values for
GOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRET - Create a Discord OAuth App and add values for
DISCORD_CLIENT_IDandDISCORD_CLIENT_SECRET - Create a GitHub OAuth App. Make sure to set Authorization callback URL to http://localhost:3000/api/auth/callback/github. After that add values for
GITHUB_CLIENT_IDandGITHUB_CLIENT_SECRET - Create Mailtrap account and add values for
EMAIL_SERVER_USER,EMAIL_SERVER_PASSWORD,EMAIL_SERVER_HOST,EMAIL_SERVER_PORT,EMAIL_FROM - Create VirusTotal account and add values for
VIRUS_TOTAL_API_KEY npx prisma db seedpnpm run dev







