Build and Deploy a Full-stack Blog with Next.js, TypeScript, and Sanity.io

  Рет қаралды 6,290

code with lari

code with lari

Күн бұрын

In this video, we'll build a full-stack blog using the popular Next.js framework, TypeScript for type-checking, and Sanity.io as our content management system.
We'll start by setting up our Next.js project. Then, we'll create a custom schema in Sanity.io for our blog posts, including categories and authors. We'll use the Sanity Studio to create and manage our content. Next, we'll write server-side and client-side code to fetch and display our blog posts. We'll also add support for dynamic routing and pagination.
Throughout the video, we'll use TypeScript to ensure type safety and catch errors before runtime. By the end of the video, you'll have a fully-functional blog that you can deploy to the web. Whether you're new to web development or an experienced developer, this video is perfect for anyone looking to learn how to build a full-stack web application with modern technologies.
Don't forget to like, comment, and subscribe for more videos like this one! #NextJS #TypeScript #SanityIO #fullstackwebdevelopment
/ laribright
github.com/laribright/nextjs-...
Timecodes.
0:00 - Intro
01:49 - understanding folder structure
11:58 - Optimizing Google fonts in next.js
21:46 - Layout Component
26:24 - Configure tailwind variables
29:38 - Header component
40:16 - Footer Component
43:45 - Routing in Next.js. Pages Folder
49:15 - Blog Page JSX
01:07:27 - Slug Page
01:10:59 - Nextjs API folder
01:18:29 - Client-side rendering
01:24:46 - Server side rendering (getStaticProps)
01:34:21 - getStaticProps vs getServerSideProps
01:40:38 - Using typescript in next.js page
01:45:35 - What is sanity.io
01:49:31 - Sanity project
01:56:05 - Sanity category schema
02:08:00 - Sanity author schema
02:14:36 - Sanity blog schema
02:29:07 - Create blog content in sanity
02:36:10 - Connecting sanity to next.js / GROQ query
02:53:20 - Blog Query. More complex GROQ
03:04:03 - Populate author in blog query
03:15:18 - Featured Post query
03:24:23 - Get static paths
03:44:48 - Environment variables in next.js
03:46:36 - Deployment

Пікірлер: 16
@axwelable
@axwelable Жыл бұрын
Lookin good Lari, great tutorial!
@narudesigns
@narudesigns Жыл бұрын
Nice 🎉
@azizlimonu7042
@azizlimonu7042 Жыл бұрын
great job man
@codewithlari
@codewithlari 11 ай бұрын
Thank you 🎉
@ahmedyarkhan7006
@ahmedyarkhan7006 8 ай бұрын
can u make a short 2nd part about preview mode in this blog app
@JaydenNguyen-hq3cn
@JaydenNguyen-hq3cn Жыл бұрын
Hi, may I ask what vscode theme are you using? :)
@codewithlari
@codewithlari 11 ай бұрын
I just use the dark (modern theme)
@princeakim01
@princeakim01 Жыл бұрын
Hello thanks for content it possible to have sanity part code source ?
@codewithlari
@codewithlari 11 ай бұрын
Hi 👋. You might wanna check this out github.com/laribright/nextjs-sanity-shop
@usmanmarkaz
@usmanmarkaz Жыл бұрын
do you have plain for ecommerce project in next js with sanity and firebase
@codewithlari
@codewithlari Жыл бұрын
Currently working on one. But with next.js and next auth rather firebase.
@codewithlari
@codewithlari 11 ай бұрын
Here you go kzfaq.info/get/bejne/l7GcZK2X2ODPh30.html
@malikbhai2285
@malikbhai2285 Жыл бұрын
Dear Sir, please create project next.js 13.4 with MongoDB small and simple only title, description, or image post or add and display or other page video post or display or signup or sign in page protected page in an easy and simple way no involve css work just development work
@codewithlari
@codewithlari 11 ай бұрын
I think this can help 🙌🏽 kzfaq.info/get/bejne/l7GcZK2X2ODPh30.html
@malikbhai2285
@malikbhai2285 11 ай бұрын
@@codewithlari this is too much Long video... Make new video only 1:30 hours
@manoj-k
@manoj-k Жыл бұрын
Code with lorry better than code with Harry?😂😂
Next js Tutorial for Beginners | Nextjs 13 (App Router) with TypeScript
1:02:55
Programming with Mosh
Рет қаралды 552 М.
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 27 МЛН
OMG😳 #tiktok #shorts #potapova_blog
00:58
Potapova_blog
Рет қаралды 4 МЛН
Build a news application with React
1:14:18
code with lari
Рет қаралды 2,5 М.
Build and Deploy a Full Stack Blog NextJs + Sanity.io | JavaScript, React
2:04:48
Elena Litvinova — The Art of Web Development 🛸
Рет қаралды 18 М.
remix.js tutorial v2
1:06:35
code with lari
Рет қаралды 1 М.
Создаём и деплоим собственный FULL STACK блог | NextJs + Sanity
2:43:54
Елена Литвинова — Искусство Веб-разработки 🛸
Рет қаралды 11 М.
The Truth about Rust/WebAssembly Performance
29:47
Greg Johnston
Рет қаралды 173 М.
How NextJS REALLY Works
28:25
Theo - t3․gg
Рет қаралды 139 М.
cute mini iphone
0:34
승비니 Seungbini
Рет қаралды 6 МЛН
💅🏻Айфон vs Андроид🤮
0:20
Бутылочка
Рет қаралды 742 М.