1. Next.js là gì? Giới thiệu về khóa học Next.js 14 Free

Được Dev
4 Mar 202423:11

Summary

TLDRThis video script introduces a free 'Nest.js' course by the creator, who also offers a discounted upgrade for advanced courses on their educational platform, edu.yan.com. The course covers building a simple e-commerce site using Nest.js, a framework built on Node.js, with features like authentication and SEO optimization. The script explains the benefits of server-side rendering for SEO and the ease of using Nest.js for full-stack development. It also discusses the course's requirements, such as basic knowledge of HTML, CSS, JavaScript, and React.js, and provides guidance on deploying applications using Vercel or VPS services.

Takeaways

  • 😀 The video introduces a free series on NestJS, a framework for building efficient and scalable server-side applications.
  • 🎓 The presenter offers a discount for their courses on their website, edu.yan.com, which sells various courses with a special offer for YouTube viewers.
  • 🛠️ The course covers building a simple e-commerce shop project using NestJS, showcasing basic functionalities like registration, login, product management, and SEO.
  • 🔒 NestJS is highlighted for its strengths in SEO and authentication, differentiating it from other frameworks like React which are more client-side focused.
  • 🌐 The video mentions that the presenter's NestJS project will include both server and client-side components, with the server-side built on Fastify, a Node.js framework.
  • 📈 The presenter discusses the importance of community and support for a framework, citing that NestJS is widely used by many well-known companies, which is a sign of trust and stability.
  • 🚀 NestJS is positioned as a modern solution that combines the benefits of server-side rendering for SEO with the interactivity of client-side JavaScript frameworks.
  • 🛡️ The video touches on the technical requirements for learning NestJS, including basic knowledge of HTML, CSS, JavaScript, and familiarity with React.
  • 💻 Deployment options for NestJS applications are discussed, with a preference for Virtual Private Servers (VPS) over serverless options for performance reasons.
  • 🔄 The presenter explains the evolution of web development, from server-side rendering to client-side rendering, and back to server-side rendering with frameworks like NestJS.
  • 🔑 The video script also addresses common questions about when to use NestJS, suggesting it for large-scale projects or when SEO is a priority, and when it might not be necessary.

Q & A

  • What is the purpose of the video series 'Nest Free Course'?

    -The video series is designed to introduce and teach viewers about the Nest framework, offering both free and paid courses on web development.

  • What is the discount provided for purchasing courses from the website edu.yan.com?

    -A discount of 100,000 is offered for purchasing courses from the website by using the voucher code provided in the video.

  • What kind of project will be developed in the free Nest course?

    -The free Nest course will develop a simple e-commerce shop project using technologies like Fastify for the backend, running on a Node.js environment.

  • What features will the e-commerce shop project include?

    -The project will include features such as user registration, login, product addition, deletion, viewing, and management with authentication.

  • Why does the instructor recommend focusing on frontend development with Next.js?

    -The instructor suggests focusing on frontend development because the backend of Next.js is still relatively new and not fully complete, which could lead to complications.

  • What does the instructor suggest about the use of the term 'SEO' in the context of React.js?

    -The instructor implies that claims of React.js being SEO-friendly without additional server-side rendering may be misleading or incomplete.

  • What is the relationship between Vercel and Next.js?

    -Vercel is the company that hosts Next.js and provides services like hosting, serverless functions, and databases, similar to Amazon Web Services.

  • What are the prerequisites for learning Next.js according to the video?

    -The prerequisites for learning Next.js include knowledge of HTML, CSS, JavaScript, and a basic understanding of React.js and Node.js.

  • Why does the instructor recommend using a VPS for deploying Next.js applications?

    -The instructor recommends using a VPS for faster deployment and better performance compared to free services like Vercel, which might be slower.

  • What is the difference between app router and page router in Next.js as of version 14?

    -App router and page router are two different routing solutions in Next.js. The app router is the newer and more stable approach, which the Next.js team is focusing on, while the page router is the older method and may be deprecated in the future.

  • What is the instructor's advice on using Next.js for SEO-unimportant projects?

    -For projects that do not require SEO, such as internal management systems, the instructor suggests that using traditional React.js with server-side rendering might not be necessary and could opt for simpler solutions.

Outlines

00:00

📚 Introduction to Free Nest.js Series and Discount Offer

The speaker introduces a free series on Nest.js and offers a discount of 100,000 for purchasing courses from their website, edu.yan.com. The website is described as a platform for selling various courses at discounted prices using a promotional code related to YouTube. The speaker also mentions a free Nest.js course and an advanced, paid version that will be released after the free course. They invite viewers to submit their email on the website to receive a link to the free Nest.js project source code and to stay updated on the paid course release.

05:02

🛠️ Overview of Nest.js Framework and Its Features

The speaker provides an overview of the Nest.js framework, highlighting its capabilities for both server and client-side rendering, making it suitable for full-stack development. They compare it to other technologies and frameworks, advising that while Nest.js is new and not fully complete on the backend, it is a solid choice for frontend development. The speaker discusses the benefits of server-side rendering for SEO and mentions the ease of using Nest.js for SEO optimization compared to React.js. They also touch on the integration of various tools within Nest.js that are not available in React.js by default.

10:05

🔧 Discussion on the Advantages and Use Cases of Nest.js

The speaker delves into the advantages of using Nest.js, such as its SEO friendliness due to server-side rendering, and the built-in features that are not present in vanilla React.js. They discuss the importance of a unified coding standard that Nest.js provides, which can be beneficial for large projects. The speaker also contrasts traditional server-side rendering with single-page applications and the issues they present, such as SEO challenges and initial load times. They highlight how Nest.js addresses these issues while maintaining the benefits of server-side rendering.

15:07

💡 Requirements and Recommendations for Learning Nest.js

The speaker outlines the prerequisites for learning Nest.js, which include knowledge of HTML, CSS, and JavaScript, as well as basic understanding of React.js and Node.js. They recommend studying the official React.js documentation and offer their own advanced course for those looking to deepen their skills. The speaker also provides advice on whether to use Nest.js for backend development, suggesting it may be overkill for small projects or those without complex business logic requirements.

20:09

🚀 Deployment Options and Recommendations for Nest.js

The speaker discusses deployment options for Nest.js applications, recommending the use of a Virtual Private Server (VPS) for faster performance compared to free services like Vercel or Netlify. They also address the new routing features in Nest.js, explaining the difference between app router and page router, and focusing on the app router as the future standard. The speaker invites viewers to submit their email to receive a GitHub link for the Nest.js project and to stay informed about the course.

Mindmap

Keywords

💡NestJS

NestJS is a modern, scalable Node.js framework for building efficient and reliable server-side applications. It is designed to be a complete solution, incorporating elements of Angular, making it a framework rather than just a library. In the video, the speaker introduces NestJS as a subject of a course, highlighting its capabilities in SEO optimization, authentication, and server-side rendering, which are essential for building full-stack applications.

💡Server-Side Rendering (SSR)

Server-Side Rendering refers to the process where the server generates the HTML content of a webpage and sends it to the client. This is beneficial for SEO because search engines can easily crawl and index the content. In the script, the speaker mentions that NestJS supports SSR, which is a significant advantage for web applications that require good search engine visibility.

💡SEO (Search Engine Optimization)

SEO is the process of improving a website's visibility in search engine results. It is a critical aspect of web development, especially for businesses that rely on organic traffic. The speaker emphasizes that NestJS is 'strong' in SEO, meaning it is designed to help websites rank higher in search results by facilitating server-side rendering and providing tools that are SEO-friendly.

💡Authentication

Authentication is the process of verifying the identity of a user or device. It is a crucial security measure for applications that require user logins. The video script mentions that NestJS includes features for authentication, which is important for creating secure applications that manage user sessions and data.

💡ReactJS

ReactJS is a popular JavaScript library for building user interfaces, particularly for single-page applications. It is often used in conjunction with other libraries or frameworks. The speaker compares ReactJS to NestJS, noting that while ReactJS is a library, NestJS is a more comprehensive framework that includes additional features like server-side rendering and SEO tools.

💡Vercel

Vercel is a cloud platform for hosting and serving web applications. It is mentioned in the script as the company that hosts the NestJS website and provides serverless functions, databases, and other services. Vercel is known for its integration with Next.js, another framework, but the speaker uses it as an example of a hosting service for NestJS applications.

💡Framework

A framework in software development is a set of pre-written code that provides a structure for developing applications. The term is used in the script to distinguish between NestJS, which is a full-fledged framework, and ReactJS, which is a library. The speaker explains that NestJS, being a framework, offers more built-in functionality than ReactJS.

💡VPS (Virtual Private Server)

A VPS is a virtual machine that functions as a dedicated server with its own operating system and resources. In the script, the speaker recommends deploying NestJS applications on a VPS for better performance compared to some other hosting services. VPS provides more control and is suitable for production environments.

💡SSR (Single-Page Application)

SSR is often used in the context of web development to refer to Single-Page Applications, which load a single HTML page and dynamically update that page as the user interacts with the app. The speaker mentions that traditional SSR has drawbacks in terms of user experience due to 'flashing' or reloading of content, which is something that frameworks like NestJS aim to improve upon.

💡SEO-friendly

SEO-friendly refers to the design and development practices that make a website more accessible and indexable by search engines. The script discusses how NestJS is built to be SEO-friendly, which is important for the discoverability of websites and their content in search results.

💡Course

The term 'course' in the script refers to the educational content provided by the speaker, which is about learning NestJS. The speaker offers both free and paid courses, with the free course serving as an introduction to NestJS and the paid course presumably covering more advanced topics.

Highlights

Introduction to a free 'Nest' course series with a discount offer for purchasing other courses from the speaker's website.

The speaker's website, edu.yan.com, is a platform for selling various courses with a special discount for YouTube referrals.

Mention of a free 'Nest.js' course and an upcoming paid advanced course once the free one is completed.

Instructions on how to submit an email to receive the source code and updates on the 'Nest.js' project.

Overview of the 'Nest.js' framework, its capabilities, and its comparison with 'React.js'.

Explanation of why 'Nest.js' is preferred for SEO and server-side rendering advantages.

Description of the 'Fastify' backend technology used in the course project for a simple e-commerce shop.

Details on the functionalities included in the project, such as user authentication and product management.

The speaker's recommendation to focus on front-end development with 'Nest.js' and avoid full back-end development due to its newness and potential instability.

Introduction to 'Vercel', the company behind 'Nest.js', and its services similar to Amazon Web Services.

Discussion on the importance of community support and the number of companies using 'Nest.js'.

Advantages of 'Nest.js' for SEO optimization and its integration of tools for image and CSS optimization.

Comparison of 'Nest.js' with traditional server-side rendering and single-page applications regarding SEO and user experience.

The speaker's advice on the suitability of 'Nest.js' for large-scale projects and its deployment on Vercel services.

Recommendation to deploy serious projects on VPS for better performance over free services.

Introduction to 'Nest.js' version 14.1.1, released three days prior to the video recording.

Explanation of 'Nest.js' routing, focusing on 'app router' over 'page router' in the latest versions.

Answering common questions about the use of 'Nest.js' for backend development, SEO, and project scale suitability.

Final notes on the prerequisites for learning 'Nest.js', including basic knowledge of HTML, CSS, JavaScript, and React.

Transcripts

play00:01

Hello Chào các bạn đã đến với cái series

play00:04

Nest miễn phí của mình trước tiên đi vào

play00:07

phần giới thiệu thì mình sẽ tặng cho các

play00:09

bạn à xem cái video này một cái vure

play00:12

giảm giá 100.000 khi mà mua những cái

play00:14

khóa học của mình tại website edu.

play00:17

yan.com Đây là cái website bán khóa học

play00:21

của mình nha mình tạo bằng njs thì các

play00:23

bạn có thể vào đây mua bất kỳ cái khóa

play00:25

học nào mà các bạn muốn với giá rẻ hơn

play00:28

cái giá này một 100000 bằng cách nhập

play00:31

cái vô chơ là YouTube viết như thế này

play00:33

nha Rồi Ok mình sẽ đi vào giới thiệu cái

play00:36

khóa học njs của mình thì đây là cái

play00:39

khóa học miễn phí thì mình còn một cái

play00:41

khóa có phí nữa nếu mà các bạn thấy cái

play00:43

cách dạy của mình hay và phù hợp thì các

play00:46

bạn có thể mua cái khóa Ness nâng cao

play00:48

trả phí của mình thì hiện tại cái khóa

play00:50

này mình chưa quay nha Thì sau khi mà

play00:52

mình quay xong cái khóa nj miễn phí này

play00:55

rồi thì mình sẽ quay cái khóa nâng cao

play00:57

và khóa nâng cao mình sẽ đăng lên trên

play00:59

cái A nền tảng bán khóa học của mình là

play01:02

đây nha rồi còn về cái khóa Mỹ phí thì

play01:05

các bạn có thể xem hoàn toàn không tốn

play01:07

một đồng nào trên kênh YouTube của mình

play01:10

bạn nào mà muốn ủng hộ mình đơn giản thì

play01:12

có thể mua cái khóa năng cao của mình

play01:14

cũng được

play01:16

rồi để nhận được cái link g Hub mã nguồn

play01:19

của dự án này thì dự án này mình sẽ có

play01:22

phần server và phần clan thì các bạn à

play01:25

có thể submit cái email của bạn vào

play01:28

trong cái

play01:30

website này thì đây các bạn vào

play01:32

youth.com nhá rồi Click vào cái phần

play01:34

khóa học njs này thì các bạn Nhập cái

play01:36

email của các bạn vào các bạn nhắn gửi

play01:38

thì mình sẽ gửi một cái email về cái

play01:41

đường link giub dự án njs free này cho

play01:45

các bạn nha rồi thì khi mà các bạn

play01:47

submit thì khi mà mình có cái thông báo

play01:50

về cái khóa học trả phí thì mình cũng sẽ

play01:52

gửi cái thông báo của mình đến cho các

play01:55

bạn để các bạn khỏi bị Miss luôn ok rồi

play01:57

về phần giới thiệu về cái dự án mình làm

play02:01

trong cái khóa ns này thì mình sẽ làm

play02:03

một cái dự án shop bán hàng đơn giản

play02:05

thôi nha mọi người một cái shop bán hàng

play02:07

đơn giản à công nghệ của mình sử dụng đó

play02:09

là một cái backend fastify chạy trên môi

play02:13

trường noe js nha fastify và frand là

play02:17

mình dùng

play02:18

njs rồi những cái chức năng của mình ấy

play02:20

là bao gồm đăng ký đăng nhập nè À thêm

play02:24

sự Xóa sản phẩm xem sản phẩm Seo và quản

play02:27

lý authentication đó thì một số bạn sẽ

play02:31

hỏi tại sao làm mấy cái chức năng nó đơn

play02:33

giản như này thì thực sự với các bạn ấy

play02:36

thì chức năng phức tạp ấ thì nó cũng chỉ

play02:38

xoay quanh cái thằng react js thôi mọi

play02:40

người ạ Còn cái thằng njs ấ thì nó quanh

play02:43

đi quẫn lại thì nó là react js nên mình

play02:46

sẽ xoay quanh cái Framework njs có nghĩa

play02:48

là mình xoay quanh những cái chức năng

play02:50

mà njs có reactjs không có chứ không

play02:54

phải là mình đi mình làm những cái logic

play02:57

business phức tạp đúng không cái đấy đâu

play03:00

cần thiết đâu Cái này cần với người này

play03:02

nhưng đâu cần với người kia cái chúng ta

play03:04

cần ấy là học về cái Framework ns đó Ok

play03:09

thì cái Framework njs này nó mạnh về cái

play03:11

gì nó mạnh về Seo đúng không Nó mạnh về

play03:13

authentication đúng không Hay là nó mạnh

play03:16

về rendering thì mình sẽ học kỹ về những

play03:20

cái phần đấy còn mấy cái mà làm mấy cái

play03:22

chức năng phức tạp dữ án này thì thôi

play03:24

skip nó qua cho nó tiết kiệm thời gian

play03:26

ha Rồi

play03:28

ok đi qua giới thiệu về cái thằng njs là

play03:31

gì thì đầu tiên à Đây là cái trang chủ

play03:34

của thằng njs thì njs này nó được

play03:38

hosting trên cái công ty Mẹ Của Nó công

play03:41

ty mẹ đó là ver sale nha thì đây là cái

play03:43

logo của thằng ver sale này Đây là Logo

play03:46

của thằng Nest đó thì logo V sale Nó là

play03:48

một cái tam giác Ừ cái thằng V sale này

play03:51

Nó là một cái công ty cung cấp dịch vụ

play03:54

điện toán đấm may hay là C hay cò gọi là

play03:57

công ty cung cấp mấy cái hosting server

play03:59

các kiểu ch ấ mọi người gần gần giống

play04:00

như cái thằng Amazon web service ấ thì

play04:02

cái thằng này À nó cũng mới gần đây thôi

play04:06

nó nổi lên cách đây mấy năm từ khi mà nó

play04:09

làm cái thằng ncs này hiện tại cái mạng

play04:12

internet của mình đang dùng là mạng

play04:14

viett Tail thì cái mạng viett Tail này

play04:15

mình không hiểu vì sao mà nó chặn những

play04:17

cái website mà hosting lên trên V sale

play04:20

ngay cả cái thằng ns này luôn mới hôm

play04:23

mình vào được Có hồ mình vào không được

play04:24

như hôm nay mình vào không được mình

play04:25

phải bật cái VPN lên mọi người ạ thì VPN

play04:28

à mọi người có thể tải một cái attention

play04:30

VPN trên chrome mình thì mình dùng

play04:34

attention là Hotspot SH thì thằng này

play04:36

free thôi mọi người đó bật cái thằng này

play04:38

lên thì vào được rồi thì nexts nó là gì

play04:42

Nó là một cái Framework của thằng vs à

play04:45

Nó được Build lên trên giữa cái thằng

play04:47

react thì react là của Meta nha Meta

play04:50

Facebook ấy mọi người react thì nó được

play04:52

coi là Library là một cái thư viện còn

play04:55

Nest nó được coi là một cái Framework

play04:57

luôn bởi vì nó hoàn chỉnh hơn cái thằng

play04:58

react nó nó nhiều chức năng hơn ha rồi

play05:01

thì cái thằng njs này nó có thể làm

play05:04

server giống như là Express js bên nocs

play05:08

ấ Và nó có thể làm clan như thằng react

play05:11

luôn đó là cái chức năng của thằng ncs

play05:14

làm full stack luôn mọi người nhưng mà

play05:16

mình khuyên mọi người thì nên làm front

play05:18

end thôi à còn back end thì mọi người có

play05:21

thể làm một tí xíu back end chứ đừng làm

play05:24

full backend bên cái thằng next này bởi

play05:26

vì nó cũng mới nó cũng chưa hoàn chỉnh

play05:28

về mặt back đó mọi người và nếu mà các

play05:31

bạn chọn backend bên next thì các bạn sẽ

play05:35

bị dính vào

play05:36

cái cái Framework này các bạn sẽ bị dính

play05:39

vào cái thằng Note CS đôi khi chúng ta

play05:42

muốn làm pend bhp hay là pend Rose back

play05:46

and Golden thì đâu có được đâu đúng

play05:48

không đó thì

play05:50

Nest nó giải quyết cái vấn đề gì à trước

play05:54

khi mà đi vào cái phần hai thì mình sẽ

play05:58

à giới thiệu luôn Về Hiện tại cái

play06:02

version ns là version máy hiện tại ngay

play06:05

tại cái thời điểm mình quay cái video

play06:06

này là ngày 4 tháng 3 2024 thì để xem

play06:10

cái version thì mình sẽ Click vào cái

play06:12

đường link g Hub của cái dự án này thì

play06:15

đây là cái đường link g Hub version cái

play06:18

phần release này mọi người thì version

play06:20

nó là version 14.1.1 nha Thì nó vừa

play06:22

release cái version này 3 ngày trước à

play06:25

các bạn Click vào cái phần này thì các

play06:27

bạn sẽ thấy là đây là những cái tag mà

play06:29

nó release Đây là cái version hiện tại

play06:30

play06:32

latest Còn đây là những cái version mới

play06:34

hơn mới hơn này nó đánh một cái ký hiệu

play06:37

đó là Canary thì cái Canary này mọi

play06:39

người tưởng tượng giống như là một cái

play06:42

tiền release tiền tiền phát hành ấy mọi

play06:45

người Ờ khi mà người ta phát hành một

play06:47

cái version gì đấy thì người ta sẽ phát

play06:50

hành vài cái version Canary để cho những

play06:52

cái đội

play06:54

ngũ đội ngủ đếp mà muốn test thử những

play06:57

cái tính năng mới có thể là nó chưa hoàn

play07:00

thiện 100 ph nó 90 95 ph và ai mà muốn

play07:03

test thử thì dùng cái version Scary này

play07:06

đó thì nó giống như là cái version beta

play07:08

á mọi người rồi thì sau khi mà test vài

play07:11

vòng rồi thì người ta sẽ release cái

play07:13

version chính thức ok rồi Ừ ai là người

play07:18

dùng cái thằng Ness này thì ns này nhiều

play07:21

người dùng lắm mọi người ạ rất là nhiều

play07:22

cái công ty người ta dùng luôn à đây các

play07:26

bạn có thể thấy loom này toàn là những

play07:28

công ty nổi tiếng thôi hay là cái tờ báo

play07:32

Washington này Mr Beast basement flash ở

play07:37

dưới này thì chúng ta có thể thấy

play07:38

netflix tiktok Twist nhiều nha notion

play07:42

target Ok rất là nhiều thì đủ để chúng

play07:45

ta tin tư mà chúng ta dùng cái thằng này

play07:47

chứ nếu như mà chúng ta dùng một cái

play07:49

Framework mà ít người dùng xít cộng đồng

play07:52

thì rất có khả năng là cái dự án này

play07:56

trong tương lai nó sẽ bị bỏ rơi mà nếu

play07:58

mà chúng ta đem cái đấy chúng ta dùng

play08:00

cho dự án của chúng ta thì dự án chúng

play08:02

ta nó rất là dễ đi tông nha Rồi ok thì

play08:07

cái thằng njs này nó giải quyết cái vấn

play08:09

đề gì thì đầu tiên ấy

play08:11

njs nó render website chúng ta ở server

play08:15

nên là nó rất là thân thiện với Seo nha

play08:19

Thì hiện tại cái thằng react ấ nó là

play08:22

client Si rendering có nghĩa là render ở

play08:25

trên trình diệt của chúng ta đó render ở

play08:27

trên trình diệt thì render trình diệt về

play08:29

render server nó khác nhau nhau như thế

play08:31

nào ấ thì ở những video sau mình sẽ giải

play08:33

thích kỹ cho các bạn về cái phần này còn

play08:35

hiện tại các bạn cứ hiểu là render ở

play08:37

trên trình duyệt ấ render website ở trên

play08:40

trình duyệt ấ thì nó sẽ không thân thiện

play08:42

với Seo đó nó không thân thiện với Seo

play08:46

nhanh thì nó cũng có thể nhanh đấy đó

play08:48

nhưng mà nó không thân thiện nha thì ai

play08:50

mà nói với các bạn rằng ấy xài react js

play08:52

thuần nó vẫn lên được top Google ấy thì

play08:56

mình nghĩ là lừa đảo nha các bạn hoặc là

play08:58

người người ta chỉ nói với các bạn một

play09:00

nửa sự thật thôi Ví dụ như cái thằng

play09:03

shopee khi mình tìm hiểu thì mình không

play09:06

rõ Hiện tại thì nó dùng như thế nào nha

play09:08

mình nhớ thì 1 hai năm trước thì nó vẫn

play09:11

còn dùng reactjs à thuần luôn

play09:14

nó nhưng mà nó vẫn lên được tốt bởi vì

play09:18

nó có một cái cách riêng để cho nó

play09:20

render ở bên server nha rồi còn cái

play09:24

thằng ns này các bạn không cần kiểu làm

play09:27

phức tạp cái vấn đề như cái thằng

play09:29

reactjs này đó như cái thằng shope nó

play09:31

làm khá là phức tạp để nó được lên top

play09:33

Google Còn với njs các bạn đơn giản hơn

play09:36

rất là nhiều các bạn có thể render ở

play09:38

phía server render website ở phía server

play09:41

và trả về cho cl nguyên một cái website

play09:44

luôn là clent không càng render lại nữa

play09:46

đó thì điều này nó sẽ giúp Seo nó tốt

play09:50

hơn rất là nhiều bởi vì cái bộ máy mấy

play09:53

cái con bx tìm kiếm của Google ấy mọi

play09:55

người khi mà nó vào cái website của

play09:57

chúng ta nó đọc cái Nội nội dung website

play09:59

của chúng ta

play10:01

thì khi mà có sẵn content ấ có sẵn định

play10:05

dạng xmail ấ thì nó đọc nhanh hơn rất là

play10:07

nhiều Đúng không Chứ nó mà nó vô cái

play10:09

website của chúng ta rồi các bạn bắt nó

play10:11

render render ra hmail đi nó tốn rất là

play10:15

nhiều thời gian khi mà nó tốn nhiều thời

play10:16

gian thì con boss nó sẽ đánh giá cái

play10:18

website của chúng ta là kém chất lượng

play10:20

hoặc là tốn nhiều thời gian thì nó sẽ

play10:22

quay mặt nó đi luôn vượt qua cái thời

play10:24

gian chờ đợi của nó thì nó đi luôn nó

play10:25

không đọc website của chúng ta nữa thì

play10:27

không đọc nữa thì lấy gì mà lên tốt đúng

play10:29

không nào rồi Tiếp theo thì là cái thằng

play10:32

ns này nó tích hợp nhiều cái tool Mà cái

play10:36

thằng res js thuần nó không có ví dụ như

play10:40

là nó có thể tối ưu ảnh này tối ưu Phong

play10:43

này tối ưu mấy cái

play10:46

CSS Hoặc là những cái file js đó thì cái

play10:50

react js thuần nó không có nha mọi người

play10:52

reacts thuần Nó chỉ là một cái thư viện

play10:54

nhỏ thôi C cái thằng ns này Nó là một

play10:57

cái Framework rồi nó còn có CS module

play11:00

này nó còn có bộ định tuyến là routing

play11:02

nhá mọi người thì bình thường các bạn

play11:04

dùng react thì các bạn dùng cái thư viện

play11:05

react Router dome đúng không Đó Còn với

play11:08

ns các bạn không cần cài mấy cái thứ đó

play11:11

nó có sẵn luôn ns nó có luôn cái mid

play11:14

weare luôn nha Thì mic weare này là mid

play11:16

weare bên server luôn đó nó có một cái

play11:20

gọi là server Action thì về cái server

play11:22

Action này thì mình sẽ giới thiệu sau

play11:24

nha và nó cũng có những

play11:27

cái chức năng tích hợp để hỗ trợ các bạn

play11:30

về Seo Ví dụ như bên ns mà để tốt Seo

play11:35

hơn một tí thì chúng ta có thể cài cái

play11:37

thằng mình nhớ là react Helmet đúng

play11:40

không Đó react Helmet còn bên này thì

play11:42

không cần cài luôn Có sẵn luôn

play11:44

nha rồi Tiếp theo ấ là nó giúp chúng ta

play11:47

thống nhất về cách viết code thì ở

play11:51

reacts nó có quá nhiều cái cách viết

play11:53

code quá nhiều những cái thư viện đi nên

play11:56

là chúng ta không có một cái quy chuẩn

play11:58

nào thì cái này đôi khi là một cái ưu

play12:01

điểm mà cũng là một cái nhược điểm nhiều

play12:03

người thích react ở cái điểm này kiểu

play12:04

như là nó linh động ấy không thích viết

play12:06

kiểu này thì viết kiểu khác cũng được

play12:08

không sao nhưng mà nhiều người thì không

play12:09

thích Nếu như mà làm những cái dự án lớn

play12:11

mà mỗi thành viên nó viết một kiểu thì

play12:13

rất là khó chịu đúng không nào

play12:16

thì bên cái thằng Nest này nó sẽ giúp

play12:19

chúng ta thông nhắc hơn bởi vì nó quy

play12:21

định sẵn với cái thằng này rồi

play12:25

đó tiếp theo đó là một cái thuyết ư

play12:29

Nhưng mà mình nghĩ là đây là cũng không

play12:31

phải thuyết ưu Đây là một cái sự thật

play12:33

chắc chắn đó là njs nó giúp đem tiền về

play12:36

cho cái thằng V sale này thì ngày xưa ấ

play12:39

các cái website thường là sẽ đi theo cái

play12:42

hướng là server side rendering kiểu như

play12:45

play12:45

multip application hay còn gọi api như

play12:48

là php này Ruby on Rail django expresss

play12:51

ngày xưa ấ mọi người hoặc là WordPress

play12:54

chẳng hạn là nó đi theo cái kiểu là

play12:55

server side rendering như thế này ưu

play12:58

điển của cái kiể kiểu này á là nó LCK

play13:00

rất là nhanh LCK nhanh lắm và Seo cực kỳ

play13:03

tốt luôn Các bạn thấy thế giới di động

play13:05

hay là website điển máy XANH chẳng hạn

play13:08

đâu cần dùng mấy công nghệ gì cho xịn sò

play13:10

đâu chỉ là server si rendering bình

play13:14

thường thôi nhưng mà các bạn search cái

play13:15

từ khóa gì nó cũng có cái điện máy Xanh

play13:17

xong rồi Thế Giới Di Động Đúng không nào

play13:19

đấy Đó là cái Seo cực kỳ tốt nhưng mà

play13:22

Nhược điển của cái thằng này á đó là cái

play13:24

us nó không được tốt lắm Nó hay bị chớp

play13:26

khi mà chúng ta chuyển trang

play13:29

và nó khó làm những cái chức năng logis

play13:32

phức tạp bên clan đó ví dụ như mình điện

play13:36

máy Xanh đây nó hay bị chớp chớp chớp

play13:40

chớp chớp chớp như thế này cũng không

play13:42

hay lắm Để mình click đó nó bị chớp ấ

play13:46

mọi người thì đôi khi nó không hay mặc

play13:48

dầ nó cũng nhanh nhưng mà nó không hay

play13:50

về mặt us thì cái thằng Nest nó sẽ được

play13:54

nó sẽ cải thiện cái phần đấy cho các bạn

play13:57

thì sau này ấ cái thằng react angular

play14:00

hay view nó ra đời thì nó đi theo cái

play14:02

hướng gọi là single B application thì

play14:05

cái hướng này nó sẽ giải quyết được cái

play14:07

nhược điểm của cái thằng api ở trên này

play14:10

đó là nhược điểm về us và nhược điểm về

play14:14

làm cái logic phức tạp bên clan nhưng mà

play14:17

nó lại có một cái nhược điểm mới đó là

play14:20

Seo rất là kém và ở cái lần l đầu tiên

play14:24

nó hơi bị chậm nha rồi thì đến đây là

play14:28

cái thằng VC nó xuất hiện nó xuất hiện

play14:30

dữ D nghĩa là một cái công ty cung cấp

play14:32

các dịch vụ phía server như là hosting

play14:34

website này serverless function à

play14:37

database này và nó cũng là cái công ty

play14:39

đầu tiên và nó khở xướng cái trào lưu là

play14:42

thôi Bây giờ mình đừng có dùng cái

play14:46

render bên client nữa mình quay trở lại

play14:49

quá khứ mình render ở server đi nhưng mà

play14:52

render phí server thì người ta lại dùng

play14:55

những cái này đó người ta lại dùng những

play14:57

cái Framework này thì cái thằng VC nó

play15:00

không muốn nên là nó tạo ra cái thằng

play15:01

Ness nó bảo à bây giờ ta tạo ra cái

play15:04

thằng ns này nó khắc phục được cái nhược

play15:07

điểm của single B truyền thống nhưng mà

play15:11

nó vẫn đem lại được cái ưu điểm đó là

play15:14

Seo tốt ừ nên là tụ mạch dùng cái thằng

play15:18

nsd và tiện thể nó quảng cáo luôn cái vụ

play15:22

VC của nó đó nên là vì thế cái thằng nh

play15:28

này nó đem lại lợi nhuận cho cái thằng

play15:30

VC luôn và nexts này khi mà các bạn chạy

play15:34

trên cái dịch vụ s Ring Time của cái

play15:36

thằng vs ấy thì nó sẽ có độ trễ thấp hơn

play15:39

nhiều khi mà các bạn chạy trên một cái

play15:41

server Note GS của các bạn nha Thì đó là

play15:44

cái cách mà kinh doanh của cái thằng V

play15:46

sale các bạn có thể hiểu là nó cho đi

play15:50

xong rồi nó mới nhận lại rồi yêu cầu khi

play15:56

mà chúng ta học njs là gì thì ở đây là

play15:59

ba cái yêu cầu đầu tiên là các bạn cần

play16:02

phải biết về HTML CSS và JavaScript nha

play16:06

thì đây là những cái yêu cầu bắt buộc

play16:08

luôn các bạn nào mà chưa biết ba cái

play16:10

thằng này thì tốt nhất nên học kỹ ba cái

play16:12

thằng này tiếp theo là các bạn cần phải

play16:15

biết về react js cơ bản thì ở đây mình

play16:18

chỉ cần các bạn biết cơ bản thôi các bạn

play16:20

không cần phải biết nâng cao về à quảng

play16:23

list tay hay cái gì cơ bản thôi cũng

play16:25

được để ở đây về cơ bản thì các bạn có

play16:27

thể

play16:29

lên trên cái document của react js hiện

play16:32

tại document của reactjs mình đánh giá

play16:34

rất là

play16:35

cao document viết rất là chất lượng luôn

play16:38

nha không như ngày xưa nữa đây document

play16:41

viết rất là chất lượng luôn các bạn học

play16:42

hết document này các bạn qua bên cái

play16:45

thằng njs các bạn chiến luôn Hoặc là các

play16:48

bạn có thể tham khảo Cái khóa njs Super

play16:51

của mình thì khóa này là từ cơ bản tới

play16:53

năng cao luôn thì hiện tại cái khóa mình

play16:55

đang được bán nha các bạn có thể tham

play16:57

khảo khóa này à và các bạn cần biết thứ

play17:01

hai đó là à Sorry mọi người thứ ba đó là

play17:03

Note js cơ bản nha Thì Note js thì các

play17:06

bạn có thể học trên YouTube cũng được

play17:08

Hoặc là các bạn tham khảo Cái khóa Note

play17:10

js năng ca của mình thì khi mà các bạn

play17:11

học xong hai cái khóa này của mình ấy

play17:13

đảm bảo của bạn chiếm cái thằng nets cực

play17:16

kỳ easy cực kỳ dễ luôn bởi vì nchs nó

play17:19

được Build dựa trên reactjs và nó chạy

play17:22

trên môi trường Note chs Nên là các bạn

play17:24

học hai khóa này là đúng bài rồi ha Thì

play17:26

bạn nào mà muốn tiết kiệm ấ thì mua cái

play17:27

khóa combo của mình đấy muốn tiết kiệm

play17:32

thay vì mua từng Khóa từng khóa thì mua

play17:34

cái khóa combo này thì rẻ hơn nhiều mua

play17:35

khóa combo này nhập cái voucher mình

play17:38

giới thiệu ở đầu cái video nhập vure này

play17:40

vô thì giảm được 100k nữa ha rồi Ở đây

play17:44

thì mình sẽ có một số cái câu hỏi

play17:47

à mà rất là nhiều bạn hỏi và mình sẽ trả

play17:51

lời luôn đó

play17:53

là có nên dùng Nest làm backend luôn

play17:57

không thì thì nếu mà các bạn làm một cái

play17:59

dự án nhỏ Ví dụ như một tới năm người

play18:01

làm ấy và yêu cầu dự án là thời gian

play18:04

phải thời gian hoàn thành dự án phải là

play18:06

nhanh à không Yêu cầu những cái nghiệp

play18:09

vụ phức tạp thì các bạn có thể chiến

play18:10

luôn cái thằng ncs cho mình luôn không

play18:12

thành vấn đề đó làm m cái dự án đơn giản

play18:14

nhanh thì chiến luôn chị à Sorry chiến

play18:17

luôn Ness nha rồi thì còn lại các bạn

play18:21

chỉ nên dùng cái thằng njs làm frontend

play18:23

thôi Bởi vì backend njs nó sẽ thiếu

play18:26

nhiều cái tính năng hơn là à những cái

play18:28

Framework chyên sau về back end à Chưa

play18:31

hết là các bạn làm njs ấ thì các bạn sẽ

play18:33

bị dính vào cái hệ sinh thái Note js như

play18:35

mình nói ở trên ấy các bạn đâu có thể

play18:37

chuyển backend sang PSP hay là goen được

play18:39

đúng không Rồi câu hỏi thứ hai đó là làm

play18:45

website quản lý không cần Seo thì có nên

play18:49

dùng njs hay không Ví dụ những cái

play18:51

website về quản lý phòng khám quản lý à

play18:56

trường học quản lý sinh viên quản lý

play18:59

thư viện chẳng hạn những cái website đấy

play19:02

thì chỉ dành cho một bộ phận nhân viên

play19:04

dùng thôi không cần Seo thì có nên dùng

play19:07

N hay không thì Câu trả lời đó là không

play19:10

cần thiết phải dùng N các bạn có thể

play19:11

dùng reacts kết hợp với vi truyền thống

play19:14

không thành vấn đề gì cả nha Bởi vì các

play19:16

bạn đâu cần sale đâu và những cái

play19:18

website đấy thì cũng chả cần gọi là

play19:22

những cái chức năng như là render server

play19:24

làm gì render client cũng được chả làm

play19:26

sao cả Nhưng mà ví dụ nhá trong tương

play19:28

lai các bạn nghĩ thử trong tương lai

play19:30

những cái dự án đấy Các bạn có muốn làm

play19:32

m cái landing page hoặc là một số cái

play19:34

trang public ra ngoài hay không ấy nếu

play19:37

như mà có thì các bạn cũng có thể chọn

play19:38

Nest thì nó sẽ an toàn hơn rất là nhiều

play19:40

so với các bạn chọn viic Còn không thì

play19:43

cứ quất cái thằng này chả làm sao

play19:46

cả rồi Ừ Nest có phù hợp với những dự án

play19:51

lớn hay không câu trả lời tất nhiên là

play19:54

có nó cực kỳ phù hợp với những cái dự ăn

play19:57

lớn các bạn thấy ấy rất là nhiều công ty

play19:59

dùng net như là tiktok netflix Uber có

play20:03

cả bance công ty tr công ty về sàn Du

play20:06

dịch TR coin nó dùng ns luôn đấy mọi

play20:09

người

play20:10

rồi ns thì deploy ở đâu njs như mình nói

play20:16

nó chạy trên Note GS đúng không Thì njs

play20:20

deploy trên VPS nha mọi người tức là một

play20:22

cái máy chủ Ảo ấ thì khi mà các bạn làm

play20:27

thì mình recom các bạn deploy lên cái

play20:29

VPS của các bạn nó sẽ nhanh hơn rất là

play20:31

nhiều so với các bạn deploy lên những

play20:33

cái à những cái dịch vụ như là ver sale

play20:36

hay là netflix file netlify thì ha cái

play20:40

dịch vụ như thế này

play20:42

ấ nếu mà các bạn dùng free thì nó rất là

play20:45

chậm Nhưng mà nó sẽ phù hợp với các bạn

play20:47

nào mà kiểu muốn Demo à không có nhiều

play20:52

tiền lắm muốn demo hoặc là Ừ đăng lên

play20:56

đấy thôi xong rồi để bỏ vào cái CV của

play20:58

mình khi mà mình đi phỏng vấn này nọ thì

play21:01

mình còn show ra cho người ta xem thì

play21:02

các bạn đưa lên cái thằng VC nf cũng

play21:05

được không sao bởi vì nó cũng miễn phí

play21:06

mà còn mình thấy cái trả phí bên mấy cái

play21:09

thằng này nó mắc ấy mọi người nó hơi bị

play21:12

mắc tiền so với cái chức năng của nó đem

play21:15

lại nên mình Ưu tiên deploy những cái dự

play21:18

án thật của mình ấy dự án mà mình làm để

play21:22

kiếm tiền luôn ấy thì mình deploy lên

play21:24

kênh cái VPS nha Thì VPS các bạn có thể

play21:27

mua rất là nhiều nơi Các bạn cứ gõ mua

play21:29

VPS lên trên Google là nó ra là một cái

play21:32

máy chủ ảo giống như là cái máy tính của

play21:33

các bạn Hiện tại rồi cái khóa học này

play21:38

mình dạy app router hay là page router

play21:41

thì dành cho những các bạn chưa biết ấy

play21:44

thì ns từ cái version

play21:46

13 Ừ Hiện tại cái version mình đang

play21:50

hướng dẫn các bạn là version 14 nha Thì

play21:53

trước đây ấ trước cái version 13 ấ thì

play21:55

nó chỉ có một cái gọi là page router

play21:57

thôi thôi Còn hiện tại nó đã chia ra làm

play22:00

hai gọi là app router và page router và

play22:04

cái team ns nó tập trung vào cái app

play22:07

router này nhiều hơn và mình dự kiến

play22:09

trong tương lai nó chắc khoảng vài năm

play22:12

nữa nó sẽ bỏ luôn cái bằng cái thằng

play22:14

page router này giống như là cái thằng

play22:16

react nó sẽ bỏ luôn những cái tính năng

play22:20

Ví dụ như là cá class đi Chẳng hạn bây

play22:23

giờ nó đâu có tập trung nhiều về máy

play22:26

class component đâu các bạn thấy toàn là

play22:28

hút thôi đúng không Thì đấy cũng kiểu

play22:29

kiểu như vậy thì dạy là mình dạy luôn

play22:32

cái mới luôn dạy app router luôn nha Thì

play22:34

app router nó cũng ra hơn 1 năm rồi nó

play22:36

cũng ổn định rồi thì chúng ta học

play22:38

thôi ok thì đó là những gì mà mình muốn

play22:43

giới thiệu trong cái video này về Nest

play22:46

rồi ok để lấy link gi Hub thì các bạn

play22:48

submit vào cái đường link thì cái đường

play22:50

link mình để ở dưới cái phần description

play22:54

cũng như là cái phần comment nha Hoặc là

play22:56

các bạn vào cái website của mình

play22:58

đó Click vào cái phần website của mình

play23:01

là du.com đó Click vào cái phần à Nest

play23:05

nhập cái email nhấn gửi mình sẽ gửi đến

play23:07

cho các bạn Ok chào mọi người

play23:09

nha

Rate This

5.0 / 5 (0 votes)

Related Tags
Nest.jsWeb DevelopmentSEO TechniquesFree TutorialsJavaScriptReact IntegrationServer-Side RenderingOnline LearningTech EducationFramework Comparison