DeepSeek-R1: Build an AI Powered Full Stack SaaS NextJs App

preview_player
Показать описание
(you can use this code)

We’re creating a PDF Analyzer, where users can input a .pdf file, and with a click of a button, AI will analyze it and show the output.

What You’ll Build
✅ Authentication flows with Clerk (SSO, Magic Links)
✅ Subscription model with Stripe
✅ Database modeling with Prisma ORM + Supabase
✅ AI integration with Deepseek API
✅ Production deployment on Vercel

📌 Chapters:
00:00 Preview
01:27 Setup
25:14 Env Variables Set Up Clerk, Supabase, Stripe, Prisma
36:09 Backend
51:07 Frontend
52:53 Deployment
Рекомендации по теме
Комментарии
Автор

Having a hard time testing the app? Here are some points that might help:

Clerk - The main thing to test is whether ngrok is running. Run ngrok.exe and here do ngrok http 3000 -> take the URL that ngrok gives for your localhost to the Clerk website. Go to webhooks in the settings (+ add the postfix "/api/webhooks/clerk" to your URL) -> take the webhook secret and add it to the environment variables. Double-check that you have the proper webhook Clerk code, layout.tsx with the Clerk provider wrapped, and that the user you are testing with does not already exist in Clerk.

Is the user getting saved to your Supabase after signing up? If yes, you can proceed with testing Stripe ->

Stripe - stripe.ts in the lib folder and webhooks/stripe/route.ts code are the main things. Then go to the Stripe page -> webhooks (or events, not sure how it is now) -> run the stripe login command in a terminal -> accept the terms on the page so it connects -> run the command in the terminal: stripe listen --forward-to -> save the secret -> and then you can test again.

Usually, I fixed a lot of errors during testing by just correcting a typo (e.g., '/api/webhook/' instead of '/api/webhooks/')

Hard times testing the app? These are some points that should help:

codinzero
Автор

a less than 1 hr AI nextjs saas app youtube tutorial? In a world of 6, 9, 12 hours tuts, thank you for making this

seunoyebode
Автор

that is great but why use openai package ..?

FalahgsGate
Автор

Thanks for the video. Can you please build a Knowledge based AI chatbot. Who can answer queries based on particular knowledge.
Thanks

Debarup_Sarkar
Автор

that was too quick, thanks very helpful

muhammaduseram
Автор

Please create a video "How to build and deploy ai web search agent with UI" using deepseek R1

zareefbeyg
Автор

Well... I wrote whole code, do everything as it was in tutorial but Clerk and Stripe webhooks are not working.

Wojtasvx
Автор

What do you think of building this type of application with bolt or cursor?

NITHZAEL
Автор

New subscriber. How to get hold of you man?

unchart_d
Автор

I’d like to know if you have any experience as a developer. If not, how challenging would it be for someone like me, who doesn't have a coding background, to create a SaaS product with multiple features?

pashupatipariyar
Автор

Es interesante, usas una suscripcion de pago en Deepseek?

-not-found-service
Автор

Podľa prizvuku si slovak mam taky pocit, koľko sa pohybuješ ako web dev ?

majotdi
Автор

This is exactly how AI will replace developers 😅

samuel_ahmed
Автор

Please create a finance /fintech app alsp

sanskarkhandelwal
Автор

Please put the option that translates the audio into Spanish. This way you will gain a lot of views and subscribers to your channel

NITHZAEL