ChatGPT Clone with Next.js, Supabase and Jotai

  Рет қаралды 8,516

makrdev

makrdev

Күн бұрын

In this video, I'll show you how you can create a chatGPT clone with Next.js, Typescript, Supabase, Jotai and Tailwind. It's an open source project that you can find from my Github profile. Feel free to ask questions if you need.
NOTE: Project structure has changed after this video. Please make sure you check the Github Repo.
github.com/batuhanbilginn/mak...
Previous Videos I mentioned in video:
Supabase with Next.js 13 - • Supabase, Next.js and ...
State Management with Jotai - • Jotai: Atomic State Ma...
- timestamps -
00:00 - Intro / Application Walkthrough
02:54 - Supabase Setup
07:10 - Next.js Setup
13:12 - useChats Custom Hook
21:02 - useChat Custom Hook
26:16 - State Management and Application Logic with Jotai
53:07 - Route Handlers
01:02:39 - Outro
Source Code: github.com/batuhanbilginn/mak...
Learn more: makr.dev
#supabase #typescript #development #developer #openai #ai

Пікірлер: 44
@ccouto2869
@ccouto2869 Жыл бұрын
impressed with the content, not only the chatgpt clone, but there's a lot to study here, it got my like and my subscription
@makrdev
@makrdev Жыл бұрын
Thanks bro I appreciate it 🫶🏼
@user-ij9in4ks6y
@user-ij9in4ks6y Жыл бұрын
superb project project 🔥. Can't wait for adding plugins.
@makrdev
@makrdev Жыл бұрын
Thanks 🙏
@zaabimahdi
@zaabimahdi Жыл бұрын
This is by far one of the best build ever created on KZbin Bro, Keep the good work !
@makrdev
@makrdev Жыл бұрын
Thank you 🙏
@MarjinaBegum-ef7tv
@MarjinaBegum-ef7tv Жыл бұрын
👌👌👌
@TheCandyPixel
@TheCandyPixel Жыл бұрын
You sir have earned yourself a subscriber. Amazing value here. Thanks
@makrdev
@makrdev Жыл бұрын
Glad you liked it 👍
@vinni_codes
@vinni_codes Жыл бұрын
Such nice project. Thank you very much.
@makrdev
@makrdev Жыл бұрын
Glad you like it!
@exploit.6848
@exploit.6848 Жыл бұрын
Dude Amazing Project 🔥
@makrdev
@makrdev Жыл бұрын
Thanks 🙏
@jonnoriekwel
@jonnoriekwel Жыл бұрын
This is great. Helping me a great deal. I had a suggestion for a video (and info I really need): A lesson on encrypting user data. I don't want to read people's content, I don't care about it. So how you'd encrypt things like these messages from users.
@makrdev
@makrdev Жыл бұрын
Thanks dude 🤜 Great idea! I was thinking about the same actually. Fingers crossed 🤞
@darenbaker4569
@darenbaker4569 Жыл бұрын
Great video, fantastic that your using next 14 features be checking your repo. As I have to create a simular project for my devs. Thank you so much for sharing your hard work it helps massively
@makrdev
@makrdev Жыл бұрын
Thanks 🙏 Please check the repo first. Some changes has been made after this video. 👌
@darenbaker4569
@darenbaker4569 Жыл бұрын
I will and it did mention it in the comments, looking forward to your other videos will checkout repo tomorrow. Great to see the bugs with 13.3.o still not ready for prime time but soon. Your a star
@makrdev
@makrdev Жыл бұрын
Yeap, it’s not fully ready but almost there. I’ll post another video about building REST API with new route handlers. Just wanted to let you know in case you’re interested. Thank you so much again 🤗
@darenbaker4569
@darenbaker4569 Жыл бұрын
Yes fully aware of the new route handlers got to to talk about it with my devs in a couple of weeks. I am more worried about internalisation lol.
@makrdev
@makrdev Жыл бұрын
@@darenbaker4569 yeah it’s another topic that I want to make tutorial especially inline with SEO.
@alicodes22
@alicodes22 Жыл бұрын
Such a good build 🔥💯
@makrdev
@makrdev Жыл бұрын
Thank you 🤜
@joshuastories
@joshuastories Жыл бұрын
Amazing 🎉
@makrdev
@makrdev Жыл бұрын
Thank you 🙏
@MadhavJha
@MadhavJha Жыл бұрын
Great video and I love the stack you chose all super modern. Curious, could you add some details about how to create tables in Supabase (e.g. did you use a SQL query/script/migrations?). Also it wasn't clear to me what url to use for NEXT_PUBLIC_SUPABASE_URL.
@makrdev
@makrdev Жыл бұрын
Of course, I’ll add those details in the next video. I used to add tables and columns with SQL due to limitations of creating relationships however you can create with dashboard anymore. When you need more complex systems you can always pick that card tho, it’s the best thing of Supabase. Regarding to URL, it’s under the API section. Public URL is your API server URL. You can check from Supabase Auth video that I published a couple weeks ago. Thank you for kind words and support ❤️
@MadhavJha
@MadhavJha Жыл бұрын
@@makrdev Yay! Looking forward to the next video. Just like you have a sql folder in Semantic search repo, it would be great to have similar folder for this project especially for Postgres Noob like me. Thanks again!
@streamocu2929
@streamocu2929 Жыл бұрын
you will soon be a hero and will not have time to respond to us 😊 pls make your font a lil bit bigger... also whiteboard session like videos would be great... take the problem... break it down... then show code... thank you ❤
@makrdev
@makrdev Жыл бұрын
Thank you so much 🙏 I’ll fix the issues on next videos. Please keep me posted if you have anything specific you want to learn 🤞
@streamocu2929
@streamocu2929 Жыл бұрын
@@makrdev I have seen your roadmap and love it. But before integrating more AI features, I would integrate with Stripe with a 10$ monthly and 100$ yearly subscription.
@makrdev
@makrdev Жыл бұрын
Great idea 👍 I’ll do that when it’s ready 🤞 Thank you for your advice.
@NovusTechnologies-qw8xt
@NovusTechnologies-qw8xt 2 ай бұрын
What application did you use for the illustration
@MisterOcean5
@MisterOcean5 Жыл бұрын
Hi, I get this error (all Tables are created) when I login: "Failed to load resource: the server responded with a status of 406 (Not Acceptable)". Any Idea what might be wrong?
@makrdev
@makrdev Жыл бұрын
Did you run ‘User Management Starter’ sql query? You can find it from query libraries in dashboard. Also, you can watch my previous video to learn how to setup authentication.
@MisterOcean5
@MisterOcean5 Жыл бұрын
@@makrdev Thx for your reply, I used the SQL Queries you provided in the SQL Folder of the Project. If one use the 'User Management Starter' it creates the profiles table. But then I had to delete the section 'create profile tables' from the sql query file in create-tables.sql you provided in the SQL Folder. But anyway, the error still remains. I stuck about this sentence in your description 'After you create the embedding column,...' ?
@makrdev
@makrdev Жыл бұрын
Create-tables sql query should have handled this part. Now, you can crate index. It’s optional but makes your queries faster.
@MisterOcean5
@MisterOcean5 Жыл бұрын
@@makrdev Hi, I just cloned the project from github in a new local folder. Now am a step further but still have an issue. Login worked now but I think there is an error in the relation to the messages table. I see data in the profiles and chat tables but not in messages. This is the error I get on console.log message: 'null value in column "index" of relation "messages" violates not-null constraint'. Any idea to fix this issue?
@makrdev
@makrdev Жыл бұрын
Index column is not nullable. So, I think you are trying to create message with null value for index. Index should be automatically created by Postgres so do not try to assign any value into this column.
@emmanuelezeagwula7436
@emmanuelezeagwula7436 Жыл бұрын
what's your vscode theme ?
@makrdev
@makrdev Жыл бұрын
It's Moonlight 2. You can check it out from here: www.vscolors.com/themes/fe612a60-7107-41d4-a01e-4c3bebe3ffd8-97358241
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 20 МЛН
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 9 МЛН
Build an AI RAG Application with LangChain & Next.js
33:34
Dave Gray
Рет қаралды 17 М.
🔥 Bento Grid Layouts with Tailwind CSS | Easy 🤯
11:13
Sashank GL
Рет қаралды 7 М.
Chatbot from scratch with Next, AI SDK, OpenAI, and Shadcn/UI
36:08
Build a Chatbot With Custom Data Using ChatGPT and Supabase
41:38
Cooper Codes
Рет қаралды 18 М.
Satya Nadella: Microsoft's Products Will Soon Access Open AI Tools Like ChatGPT | WSJ
31:43
World Champion vs World Champion!
34:24
GothamChess
Рет қаралды 226 М.
Build an Agent with Long-Term, Personalized Memory
22:54
Deploying AI
Рет қаралды 28 М.
Supabase in 100 Seconds
2:37
Fireship
Рет қаралды 481 М.
How to Build REST API with Next.js 13, Supabse and Upstash
1:09:50
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 12 МЛН
📱магазин техники в 2014 vs 2024
0:41
djetics
Рет қаралды 568 М.
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 1,1 МЛН