Mã hóa bản sao Slack [phần backend với NestJS + TypeORM]
Hãy cùng học NestJS, được gọi là Spring của Node.js và trải nghiệm sự tiện lợi của Dependency Injection. Chúng ta sẽ cùng học mọi thứ, từ phát triển API, so sánh với Express, triển khai đến thử nghiệm.
Tôi đã tự tay tạo ra một ứng dụng trò chuyện và thậm chí còn phát triển một máy chủ! Hãy cùng làm quen với NestJS, sản phẩm đang hot nhất hiện nay.
Trong Express Với NestJS !
Ở công ty tôi, ban đầu tôi sử dụng Express làm nền tảng máy chủ và Sequelize làm cơ sở dữ liệu. Nhưng tôi thấy có rất nhiều người trong cộng đồng nhắc đến NestJS nên tôi đã thử và... mắt tôi sáng lên👀! Sau đó , chúng tôi chuyển đổi toàn bộ dịch vụ của công ty sang NestJS và chuyển đổi Sequelize sang TypeORM.
Mùa xuân của hệ thống nút, NestJS nóng bỏng 🔥
NestJS, được gọi là Mùa xuân của Node.js! Người ta nói rằng ngay cả những nhà phát triển đã rời bỏ Node để chuyển sang Spring cũng quay trở lại vì NestJS. NestJS khác biệt và mạnh hơn Express, công cụ được sử dụng rộng rãi cho đến nay như thế nào? Trong bài học này, chúng tôi sẽ giới thiệu các tính năng của NestJS. Hãy chuyển đổi một máy chủ web được xây dựng bằng Express sang NestJS và tạo phần phụ trợ của một ứng dụng web tương tự như Slack.
Vậy thì, chúng ta hãy cùng tìm hiểu trực tiếp lý do tại sao NestJS lại hot đến vậy.
Tôi giới thiệu điều này tới những người này!
Dành cho những ai muốn bắt đầu phát triển máy chủ Node.js với NestJS
Dành cho những ai cảm thấy các tính năng của Express còn thiếu sót và đang tìm kiếm các giải pháp thay thế
Bất kỳ ai muốn triển khai phần phụ trợ thông qua mã hóa bản sao
Mã hóa bản saoslack không giây, Những lo ngại về phần nền tảng đã được giải quyết hoàn toàn!
Chúng ta sẽ xây dựng phần phụ trợ của một ứng dụng web tương tự như Slack.
Chúng tôi sẽ giới thiệu các tính năng của NestJS và thử chuyển đổi máy chủ Express sang NestJS.
Bạn sẽ học cách thoát khỏi Express và hiểu được những lợi ích của NestJS, cũng như có thể xây dựng máy chủ NestJS.
Có thể áp dụng ngay vào thực tế!
Tôi sẽ chia sẻ những mẹo tôi học được khi sử dụng NestJS trong một năm tại công ty, chẳng hạn như cách đọc tài liệu chính thức của NestJS, cách vẽ ERD và cách tạo tài liệu API.
Một điểm cộng nữa là nó thậm chí còn hoạt động tốt với websockets và thử nghiệm!
Vui lòng kiểm tra trước khi tham gia lớp học!
Bài giảng này là phần cơ bản của bài giảng [Lập trình Slack Clone]. Tuy nhiên, bạn có thể học khóa học này mà không cần học khóa trước là Phần mở đầu. Đối với những ai tò mò về cách tạo giao diện người dùng,Vui lòng kiểm tra bài giảng trước .
Cũng như mã nguồn NestJS + TypeORM, Chúng tôi cũng cung cấp mã nguồn Express + Sequelize tương ứng cho mã .
#2 Trả lời câu hỏi một cách nhanh chóng Tôi sẽ trả lời bạn.
Điều tuyệt vời nhất trong khóa học của tôi là phần Hỏi & Đáp. Nếu bạn có bất kỳ câu hỏi nào, chúng tôi sẽ trả lời trong vòng một ngày. Hãy học tập tích cực bằng cách thoải mái đặt câu hỏi về nội dung liên quan đến khóa học. Nó sẽ giúp bạn hiểu nội dung tốt hơn!
H. Tôi có cần tham gia khóa học Slack Clone Coding - [Trò chuyện thời gian thực với React!] không? Tôi không quan tâm đến mặt trước.
Nếu bạn chỉ quan tâm đến phát triển máy chủ, bạn chỉ cần tham gia khóa học này. Nhưng khi thực hiện mã hóa ở phía sau, bạn cần một phần giao diện để gửi yêu cầu đến phần giao diện, đúng không? Vậy là tôi đã hoàn thành xong mã giao diện. Mã front-end chỉ cần được chạy. Sử dụng màn hình phía trước để gửi yêu cầu đến phần quản trị.
H. Tôi có cần biết Express không? Tôi muốn bỏ qua Express và chỉ sử dụng NestJS.
Trong bài giảng thường có những phần giới thiệu về Express hoặc so sánh sự khác biệt của nó với Express. Bạn sẽ cần có khả năng đọc mã Express ở một mức độ nào đó để khóa học diễn ra suôn sẻ. Vì NestJS sử dụng Express nội bộ nên bạn cần hiểu biết về Express.
Xin lưu ý trước khi tham gia lớp học!
Nest.js sử dụng phiên bản 8 . Sẽ dễ dàng hơn nếu học khóa học bằng phiên bản 7 hoặc 8.
Bạn có tò mò về các bài giảng về bản sao khác không? Bản sao Twitter 22 giờ!
Khuyến nghị cho những người này
Khóa học này dành cho ai?
Những người muốn bắt đầu lập trình máy chủ Node.js bằng NestJS
Express muốn chuyển sang NestJS
Nếu bạn quen thuộc với Spring và đang tìm kiếm thứ gì đó tương tự trong Node.
Cần biết trước khi bắt đầu?
Kiến thức cơ bản về Node.js
Có kinh nghiệm về Express, Passport, Sequelize
Kiến thức cơ bản về Typescript
Xin chào Đây là
65,524
Học viên
1,602
Đánh giá
9,702
Trả lời
4.8
Xếp hạng
22
Các khóa học
제 강의의 장점은 Q&A입니다(인프런 답변왕 2회 수상). 24시간 이내에 최대한 답변드립니다! 같이 고민한다는 느낌으로 답변 드릴게요!
One of the key strengths of my courses is the Q&A support. (Winner of the Inflearn Q&A King award twice) I respond to your questions within 24 hours, doing my best to help you out! You’ll feel like we’re solving the problems together.
👉ZeroCho Lectures 제로초 강의 전체 로드맵. A complete roadmap of all my courses is available here.
– Node.js교과서, 코딩자율학습 제로초의 자바스크립트, Let's Get IT 자바스크립트, 타입스크립트 교과서 저자 – ZeroCho.com 운영자 – 현) 유튜브에서 ZeroCho TV로 개발 관련 방송중 – 현) 스모어톡 CTO – 전) 오늘의픽업 CTO(카카오모빌리티에 엑싯 후 카카오모빌리티 최연소 개발파트장)
Author of Node.js Textbook, Self-Guided JavaScript by ZeroCho, Let's Get IT JavaScript, and TypeScript Textbook
The technology stack that I want to learn is mainly covered by Zerocho, so I signed up for almost all of the lectures, but the lecture-style on YouTube doesn't seem to suit me. Should I say it's chaotic and distracting? It feels more like he's commentating while playing Starcraft than teaching in a straightforward manner?? He just mentions things and passes them over, and I keep thinking that I'll look them up later... Before the lecture starts, he says, "What will I explain today?", and then he organizes them and tells me. If you can't follow along, this is the final version of today's lecture. I think this kind of lecture suits me. The content is not bad. Honestly, I hesitated to leave a review even after attending so many lectures because I felt burdened by leaving a bad review, but since I paid for the lecture, I'll leave my honest opinion. I'll watch the old lectures and leave as many reviews as possible. Lastly, he answers questions very well. He has recorded many lectures, and some of them are quite old, but I think it's really great that he maintains them while answering questions! I hope you'll continue to give us great lectures in the future.
There is a part in the middle that shows migration from express to nestjs, but it is not easy to follow this part for someone who has not taken the existing lecture. There is also the DB table creation and a webpack error that suddenly appears... I think you should make a lecture for people who have not taken the express lecture...
It was good, but I haven't seen the previous lectures, and although it's unrelated to the previous lectures, I think there are too many examples from those lectures, so I think that part is a little difficult.
I liked the part where you explained the differences with Express. I was impressed by how you had a lot to say and how you tried to teach as much as possible.
However, I wish you were a little more friendly. I saw the answer to another person's question, and it seems like the person asking the question has to be careful. I think it's a bit strange to tell people to think about their questions and not just follow along without thinking.
The instructor is good, so that may be the case, but I hope you don't forget that most of the people watching this lecture are beginners in NestJS. I'm enjoying the lecture.
Thank you for your opinion. However, my opinion has not changed. I think there are two types of students. One type is those who really want to study, and the other type is those who just follow along and get results. I want only those who really want to study to take my class, even if it means making less money. That is why I do not accept questions like, “No, you can’t follow along.” I do not want to hear people say that my lectures were not helpful.
It seems that many people are still not proficient in nestjs. When showing test code, it seems that they do not know well when to use useValue, useClass, and useFactory, as stated in the official documentation. Also, the lecture video is not well organized. It was edited from a live broadcast and produced as a lecture video, but the lecture video itself is not organized and sometimes contains incorrect explanations. Of course, the incorrect parts are explained in subtitles or supplementary videos, but I think that is not good in itself. It felt like they were not proficient enough in the framework to film a paid lecture on nestjs.
I'm sorry. There were a lot of shortcomings at that time, so I plan to re-shoot based on the manuscript I'm writing for this book. I'll do it in a format where I analyze the internal implementation.