An open-source ChatGPT UI with a fresh coat of paint and authentication.
Chatcopilot is a chat UI for ChatGPT built with Next.js, Tailwind, and Supabase. You paste in your OpenAI API key and you're good to go.
git clone https://github.com/sambarrowclough/chatcopilot.gitCreate a file in root directory of project with env. And store your API key in it, as shown in the .example.env file.
npm installThen, run the application in the command line and it will be available at http://localhost:3000.
npm run dev- Use
openssl rand -base64 32to generate NEXTAUTH_SECRET - Create a new project in supabase.io
- Follow the Supabase Prisma Integration guide to setup Prisma
- Run
npx prisma db push && prisma migrate dev && prisma generate
- Create a new project in postmark
- Create a server
- Generate a Server API tokens
- Paste in the API token in
POSTMARK_API_TOKENin.env
- Next.js – framework
- Typescript – language
- Tailwind – CSS
- Postmark – email
- Supabase – database
- NextAuth.js – auth
- Vercel – hosting
Deploy the example using Vercel:
Note: You will need to configure auth by following the setup above by using Supabase and next-auth
