An AI chat application that utilizes OpenAI's GPT-3.5 model built using the new app router, and server components in Next.js 13.
Warning This app is work in progress and not meant to be a starter template.
This project is created with the aim of providing Lao users with access to ChatGPT features. It is also an experiment to see how modern app features like (authentication, API routes, ...etc) would work in Next.js 13 and server components.
- New
/app
directory - Routing and layouts
- Server and client components
- API routes and middleware
- ORM using Prisma
- Database using Planetscale
- Styled using Tailwind CSS
- Written in Typescript
- Install dependencies using npm:
npm install
- Copy
.env.example
to.env.local
and update the variables.
cp .env.example .env.local
- Start the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
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.