Тёмный

Build a Next.js Project and deploy with Vercel, Neon, Drizzle, TailwindCSS, FlowBite and more! 

CodingEntrepreneurs
Подписаться 348 тыс.
Просмотров 52 тыс.
50% 1

⭐️ Sign up for Neon right now! neon.tech/cfe
Deploy a FULL Next.js Web App Project complete with:
✅ React.js frontend and server-side rendering ➡️ Next.js is a React.js framework that handles front-end and backend
✅ Vercel for Deployment ➡️ modern and easy deployments direct from GitHub/Bitbucket
✅ Neon is Modern Serverless PostgreSQL ➡️ a fast Vercel-ready Edge-ready database with sub 40ms queries!
✅ Edge functions for speed/performance ➡️ Server-side components that are fast and serverless!
✅ DrizzleORM for handling SQL with JavaScript ➡️ Writing SQL can be tricky; Drizzle makes it easier
✅ URL Shortening ➡️ A practical way to share and track links (this is what we build)
✅ Tailwind CSS & Flowbite for the User Interface ➡️ Easily one of the best ways to style frontends
✅ Users and sessions with custom built login, password hashing, registration, encrypted JWT sessions and more.
💽 Code: github.com/codingforentrepren...
🕹️Gists: gists.github.com/codingforent...
Tutorial created in collaboration with neon.tech. Sign up now for modern cutting-edge serverless Postgres. Pay only for what you use baby!
🚀 Enroll. Learn to code. Launch your project: cfe.sh/enroll 🚀
Chapters
0:00:00 Welcome
0:02:16 Walkthrough
0:10:00 Requirements
0:15:30 Start a Nextjs App
0:20:11 URL Routing in Nextjs
0:26:01 Handling API Routes and HTTP Methods
0:29:50 Dynamic URL Routes
0:36:09 Fetch data via Nextjs
0:43:36 Handling Fetch Errors in Nextjs
0:49:24 Pushing to Github with Git
0:57:21 Your First Next.js Deploy to Vercel
1:03:19 Environment Variables for Vercel Domains
1:12:13 Fetch and Caching in Server Components
1:19:09 Render React Client Component in Server Component
1:25:02 Client Side Fetching with swr
1:29:59 HTML Forms and Post Data Requests
1:40:45 Handling POST Data in a Next.js Route
1:45:33 Validate Submitted URL For Shortening
1:49:52 Hello World from Neon Serverless
2:00:02 Edge Functions for Neon Database Connection
2:05:11 Create a SQL Table in the Neon Console
2:12:17 Your First Drizzle Table Schema
2:17:17 Create SQL from JavaScript with Drizzle
2:25:20 Create Data with Drizzle and Neon
2:29:24 Get Lists of Data with Drizzle and Neon
2:37:58 Refreshing Table Data as a Client Component
2:42:48 Refreshing Table based on Form Event
2:46:37 Storing Random Short Strings
2:49:57 Short Value DB Lookup
2:55:17 Customize the Next.js 404 Page
2:58:08 Redirect to the Destination URL
3:01:28 Ensure Unique URLs with a SQL Index
3:05:46 Handling Database-level Errors with Unique Values
3:12:45 Visits Tracking Related Table
3:19:20 Track and Store Visits
3:27:41 Database Lookups with Related Data
3:35:34 Encrypted JWT for Session Data
3:47:23 Using Cookies with Encoded JWTs
3:55:15 Adding the Users Table
4:04:46 Password Field & Hashing Functions
4:14:29 Register & Login Pages
4:20:30 Register and Save New Users in the Database
4:33:55 Login Users and Set User Session
4:43:14 List User-only Data
4:45:29 Logout Users
4:50:53 Fixing Node.js Crypto Issues for Vercel Deployment
5:00:00 Flowbite Integration & Form Alerts
5:11:32 Improved UI with Flowbite-React
5:40:12 Custom Domain Name on Vercel
5:45:26 Thank you and next steps

Опубликовано:

 

1 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 60   
@CodingEntrepreneurs
@CodingEntrepreneurs Год назад
Next.js might be what I use for all web apps going forward. It's a great tool and I hope you enjoy it. The code, chapters and links are in the description and this comment. Thank you you for watching.👇👇 💽 Code: github.com/codingforentrepren... 🕹Gists: gists.github.com/codingforent... Tutorial created in collaboration with neon.tech. Sign up now for modern cutting-edge serverless Postgres. Pay only for what you use baby! 🚀 Enroll. Learn to code. Launch your project: cfe.sh/enroll 🚀 Chapters 0:00:00 Welcome 0:02:16 Walkthrough 0:10:00 Requirements 0:15:30 Start a Nextjs App 0:20:11 URL Routing in Nextjs 0:26:01 Handling API Routes and HTTP Methods 0:29:50 Dynamic URL Routes 0:36:09 Fetch data via Nextjs 0:43:36 Handling Fetch Errors in Nextjs 0:49:24 Pushing to Github with Git 0:57:21 Your First Next.js Deploy to Vercel 1:03:19 Environment Variables for Vercel Domains 1:12:13 Fetch and Caching in Server Components 1:19:09 Render React Client Component in Server Component 1:25:02 Client Side Fetching with swr 1:29:59 HTML Forms and Post Data Requests 1:40:45 Handling POST Data in a Next.js Route 1:45:33 Validate Submitted URL For Shortening 1:49:52 Hello World from Neon Serverless 2:00:02 Edge Functions for Neon Database Connection 2:05:11 Create a SQL Table in the Neon Console 2:12:17 Your First Drizzle Table Schema 2:17:17 Create SQL from JavaScript with Drizzle 2:25:20 Create Data with Drizzle and Neon 2:29:24 Get Lists of Data with Drizzle and Neon 2:37:58 Refreshing Table Data as a Client Component 2:42:48 Refreshing Table based on Form Event 2:46:37 Storing Random Short Strings 2:49:57 Short Value DB Lookup 2:55:17 Customize the Next.js 404 Page 2:58:08 Redirect to the Destination URL 3:01:28 Ensure Unique URLs with a SQL Index 3:05:46 Handling Database-level Errors with Unique Values 3:12:45 Visits Tracking Related Table 3:19:20 Track and Store Visits 3:27:41 Database Lookups with Related Data 3:35:34 Encrypted JWT for Session Data 3:47:23 Using Cookies with Encoded JWTs 3:55:15 Adding the Users Table 4:04:46 Password Field & Hashing Functions 4:14:29 Register & Login Pages 4:20:30 Register and Save New Users in the Database 4:33:55 Login Users and Set User Session 4:43:14 List User-only Data 4:45:29 Logout Users 4:50:53 Fixing Node.js Crypto Issues for Vercel Deployment 5:00:00 Flowbite Integration & Form Alerts 5:11:32 Improved UI with Flowbite-React 5:40:12 Custom Domain Name on Vercel 5:45:26 Thank you and next steps
@somerandomchannel382
@somerandomchannel382 Год назад
if you want components, shadcn ui is excellent. There's also clerk for auth. Then you can focus on what matters, the PROJECT stuff :D
@leventadam
@leventadam 11 месяцев назад
would you think to drop django and replace it with nextjs?
@Septumsempra8818
@Septumsempra8818 Год назад
Can we get a Django x Next.js video? Production-grade. Something along the lines of the recipe app you made previously.
@CodingEntrepreneurs
@CodingEntrepreneurs Год назад
I like it! Anyone else? Upvote the comment👆
@Fortnite_king954
@Fortnite_king954 Год назад
Yes, please! Django x Next.js video with Production-grade would be amazing!!! Thanks in advance ;D
@judevector
@judevector Год назад
Yes please I want it too ,am a JavaScript and Python developer and this will be awesome
@joaoarthurbandeira
@joaoarthurbandeira Год назад
Yes! Also, if you could add a full drf + next jwt auth that includes password reset/forgot password + google oauth2, that would be great!
@akhtarfaheem2234
@akhtarfaheem2234 Год назад
@@CodingEntrepreneurs Please, I was searching for such projects in RU-vid, couldn't find anything relevant
@teohoyos
@teohoyos 10 месяцев назад
Thanks for all the time you put into this.
@sfarpaktech
@sfarpaktech Год назад
Amazing sir, thank you for sharing.... I thought you would continue on Django but this is really a surprise. Good to see this since I learnt Django, this is great since I wanted to learn frontend and this is just in time. Thanks Alot
@keshavakumar9828
@keshavakumar9828 Год назад
This is just awesome, thank you!
@huydong3292
@huydong3292 Год назад
Thank you. I really like and appreciate your content.
@CodingEntrepreneurs
@CodingEntrepreneurs Год назад
Thank you
@Gaulois_NRV
@Gaulois_NRV Год назад
Good stuff ! Keep it up !
@scott_itall8638
@scott_itall8638 Год назад
I chose Sveltekit, but both frameworks are amazing.
@prashlovessamosa
@prashlovessamosa Год назад
Thank you.
@rajeev2127
@rajeev2127 Год назад
good to see harry mack teaching next.js
@CodingEntrepreneurs
@CodingEntrepreneurs Год назад
Just give me 3 words
@rajeev2127
@rajeev2127 Год назад
@@CodingEntrepreneurs hahaha
@lorenminiuk2435
@lorenminiuk2435 Год назад
You are impressive .. really .. 🙏💪
@KieRej
@KieRej 10 месяцев назад
@CodingEntrepreneurs What did you do to turn on those logs in terminal, whenever you do API call? for example: -POST /api/visits/ 201 in 210ms (CACHE: MISS)? I think it would be extremely helpful. Is it NextJS thing / NEON or your own?
@alexdeathway
@alexdeathway Год назад
I am still with DRF and will check this one out once done with the APIs.
@CodingEntrepreneurs
@CodingEntrepreneurs Год назад
DRF is still such a juggernaut! I think I might need to do Next.js x DRF in the near future because it's possible!
@peteresezobor7
@peteresezobor7 Год назад
Please it will be greatly appreciated if you could use django rest framework for the back end, next js for frontend and next auth for authentication. Connecting these three has been a major problem for me especially with social authentication. Thank you @CodingEntrepreneurs .
@codedjango
@codedjango Год назад
You are the best 👍
@CodingEntrepreneurs
@CodingEntrepreneurs Год назад
Thank you!
@prashlovessamosa
@prashlovessamosa Год назад
13 days completed thanks again for sharing.
@juniorMr
@juniorMr Год назад
great
@DanielOdu
@DanielOdu Год назад
Great video! Wouldn’t NextAuth securely handle all of that user authorisation in a more concise way?
@CodingEntrepreneurs
@CodingEntrepreneurs Год назад
I don’t think NextAuth supports App Router yet.
@tarikrazine
@tarikrazine 11 месяцев назад
Please more next.js and Drizzle ORM videos
@CodingEntrepreneurs
@CodingEntrepreneurs 11 месяцев назад
Cool. Any project suggestions? What do you want to see?
@tekne9947
@tekne9947 11 месяцев назад
@@CodingEntrepreneurs SAAS project using both next.js and drizzle
@tk_codes
@tk_codes Год назад
How do we add Google analytics in app route
@rluders
@rluders Год назад
If I'm not wrong you can probably use ` }`... If it doesn't work, probably we need to implement some `renderImage`... in this case, open an issue, please. :)
@CodingEntrepreneurs
@CodingEntrepreneurs Год назад
Oh yeah I’ll have to try that. I didn’t want to spend too much time on flowbite-react which is why I opted for the method I used. What’s more, I think it was the first time we discussed the Image feature of next.js.
@rluders
@rluders Год назад
@@CodingEntrepreneurs sure thing. If you notice any issue with flowbite-react, please don't forget to report the issue. :)
@AlexMarcoDAngelo
@AlexMarcoDAngelo Год назад
Just curious, why Drizzle and not Prizma? I have no preference just wondering about the thought process when chosen..
@CodingEntrepreneurs
@CodingEntrepreneurs Год назад
Drizzle feels a lot more approachable if you ask me. Both are solid though
@pythonmaster3093
@pythonmaster3093 Год назад
maybe fastapi or django4 rest with celery? ;)
@scott_itall8638
@scott_itall8638 Год назад
What do you use for your screen and camera capture?
@CodingEntrepreneurs
@CodingEntrepreneurs Год назад
Camtasia!
@ShourovRoy-pk5zm
@ShourovRoy-pk5zm 10 месяцев назад
Please make a course of Fastapi Strawberry Graphql. There is no quality content on this topic. 😌
@aymanechaaba
@aymanechaaba 4 месяца назад
environment variables don't work for me, anyone faced or facing the same issue? so confusing 😩
@alpha7s708
@alpha7s708 Месяц назад
It works
@mohitjain4943
@mohitjain4943 Год назад
I am a beginner should I use django or node?
@CodingEntrepreneurs
@CodingEntrepreneurs Год назад
Do you know Python or JavaScript? If Python, start with Django. If JavaScript, Node.js then Next.js as soon as you can. If you know have either, I found Python to be easier to learn due to it's syntax based in spacing vs braces.
@JustinMitchel
@JustinMitchel Год назад
This is the way.
@abheist_
@abheist_ Год назад
🎈 What are your thoughts on NextJS in comparison with Django ?
@CodingEntrepreneurs
@CodingEntrepreneurs Год назад
The React integration with Next.js is unmatched. It makes development much faster. All the caching is great too. Django has built-in sessions, user auth, and the admin. Those things are incredibly important. They can work together though!
@abheist_
@abheist_ Год назад
@@CodingEntrepreneurs how about the request thing which we get out of the box in Django, like user sessions and all ? I'm really looking forward to fully dive-in to NextJS.
@namesare4fools
@namesare4fools 10 месяцев назад
you didnt touch about migrations, kinda dissappointing
@takedownccp
@takedownccp Год назад
I like it, thank you
@terry.chootiyaa
@terry.chootiyaa Год назад
*I found chatGPT really helps out 😊👍*
@CodingEntrepreneurs
@CodingEntrepreneurs Год назад
ChatGPT doesn’t do well with cutting edge yet; it’s suck on Page Router among many other things! But also, yeah it does really help.
Далее
The Story of Next.js
12:13
Просмотров 558 тыс.
вернуть Врискаса 📗 | WICSUR #shorts
00:54
Next.js Server Actions...  5 awesome things you can do
7:51
Learn Drizzle ORM in 13 mins (crash course)
14:00
Просмотров 24 тыс.
Next.js 13 - The Basics
9:00
Просмотров 643 тыс.
Drizzle ORM in 100 Seconds
2:54
Просмотров 451 тыс.
NextJS Tutorial - All 12 Concepts You Need to Know
44:38