This is a repository for a Real-Time Messenger Clone built with Next.js 14, React, Tailwind, Prisma, MongoDB, NextAuth, OAuth and Pusher. The foundation of this application's implementation was guided by Antonio Erdeljac's Messenger Clone tutorial.
Key features:
Additional features (originally implemented):
git clone https://github.com/Trieuh2/messenger-clone.git
npm i
Create a .env file in the root of your app folder or use these variables on your selected platform. This application uses NextAuth, Pusher, Cloudinary, GitHub (OAuth) and Google (OAuth).
DATABASE_URL=
NEXTAUTH_SECRET=
NEXT_PUBLIC_PUSHER_APP_KEY=
PUSHER_APP_ID=
PUSHER_SECRET=
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=
GITHUB_ID=
GITHUB_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
npx prisma db push
npm run dev
Running commands with npm npm run [command]
command | description |
---|---|
dev |
Starts a development instance of the app |
To host your own copy of this application, perform the install and setup steps previously mentioned and deploy on your preferred platform. The Vercel Platform is a simple option from the creators of Next.js and hosts the deployments seen on this repository.
For hosting your own copy on Vercel, please ensure that the .env variables are included via a .env file uploaded to your cloned repository OR manually declaring the values in the Vercel Project Settings.