This is a Next.js project bootstrapped with create-next-app
.
Full stack Chat application created with: Next.js, Next-auth, Pusher, Tailwind css, Typescript, Prisma, MongoDb, Cloudinary. It has all the feauteres, authentication, live messaging, updadting profile, deleting conversations and etc.
- Authentication
- live messaging
- upload images
- send images
- update profile
- Delete conversations
Follow these steps to install and set up the project:
- Install project dependencies by running the following command:
npm install
-
Create a new file named
.env
in the root directory of the project. -
Add the following configuration variables to the
.env
file:
-
DATABASE_URL
=<YOUR_DATABASE_URL>
-
NEXTAUTH_SECRET
='<NEXTAUTH_SECRET>
' -
GOOGLE_CLIENT_ID
=<YOUR_GOOGLE_CLIENT_ID>
-
GOOGLE_CLIENT_SECRET
=<YOUR_GOOGLE_CLIENT_SECRET>
-
GITHUB_ID
=<GITHUB_ID>
-
GITHUB_SECRET
=<YOUR_GITHUB_SECRET>
-
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME
="<YOUR_CLOUDINARY_NAME>"
-
NEXT_PUBLIC_PUSHER_APP_KEY
="<YOUR_NEXT_PUBLIC_PUSHER_APP_KEY>
" -
PUSHER_APP_ID
="<YOUR_PUSHER_ID>"
-
PUSHER_APP_SECRET
="<YOUR_PUSHER_APP_SECRET>"
You are free to use, modify, and distribute this software for any purpose.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.