This is a chat application built with TypeScript, PostgreSQL, and Next.js. It features a chat interface and can manage multiple conversation sessions.
- Real-time messaging
- Conversation management
- Responsive design
- Create a user profile feature to allow users to change their name, password, etc.
- Implement chat interface
- Implement chat session management
- Implement delete chat session
- Implement skeleton for loading chat
- Next.js
- NextAuth
- TypeScript
- Prisma (PostgreSQL)
- Node.js
- npm
-
Clone the repository:
git clone https://github.com/minhoag/chat-application.git cd chatgpt-clone
-
Install dependencies:
npm install
-
Set up local variables:
- Rename
.env.example
file to.env
- Fill in all variables.
- Rename
-
Set up the database:
npx prisma migrate dev
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:3000
.
components/
: Contains React components used in the application.lib/
: Contains utility functions and configurations.pages/
: Contains Next.js pages.prisma/
: Contains Prisma schema and migrations.public/
: Contains static assets.styles/
: Contains global styles.
This project is licensed under the MIT License. See the LICENSE
file for more
details.