Knowledge Sharer Rating: 4.9! With John Ahn Try building your own web app using the TDD method .
Topic Introduction 📝
hello. In this lecture, we will create a Node.js application using test-driven development.
Test-driven development (TDD) is becoming increasingly standard in development. In today's world where more stable applications are required, Because it is a very effective way to reduce debugging time during the development process.
But still, many companies say they don't have time. There are still many places that say they haven't applied the TDD method to their work yet. And when I actually tried to apply TDD, I was not familiar with the new module and the new development method. It seems like there are many cases where people are giving up on the TDD method again.
So in this lecture, we will learn how to easily implement test-driven development. I created a lecture that will help you learn TDD just by following along.
Through this course, you will learn test-driven development. I hope you find it useful, whether in your work or in your personal portfolio!
What you will learn in this course ✏️
Basic structure Node.jsExpress.jsmongoDBMongoose
Test-Driven Development JestSupertestnode-mocks-http
Lecture Features 💡
A characteristic of my lectures is that I always explain using diagrams.
Find all parts of the lecture that can be diagrammed, rather than just diagramming specific parts. I tried to make it easier to understand using diagrams.
And the course is structured in a way that you repeat what you have learned once multiple times. It has the feature of automatic review.
Tools covered here 🧰
I use Visual Studio Code, but you can use any editor you like. I use a MAC but it works on Windows too.
Nhìn chung, thật tốt khi biết quy trình thử nghiệm tích hợp/thử nghiệm đơn vị cho CRUD. Tuy nhiên, về mặt lý thuyết, tôi nghĩ sẽ tốt hơn nếu chúng ta có thời gian nói trước về cách hoạt động của Jest hoặc Supertest. Có một số nhầm lẫn về cách tạo một hàm giả hoặc tạo một req, res mock và thử nghiệm hầu như nó dựa trên dữ liệu DB hoạt động như thế nào.
Trước đây tôi đã nhận được rất nhiều sự giúp đỡ từ một bài giảng miễn phí nên tôi đã tin tưởng và mua nó..!! Ồ, nhân tiện, tôi đã nghe bài giảng miễn phí của giáo viên và tạo một trang web React bằng API mở của công ty trò chơi và phân phối nó, nhưng tôi không sử dụng DB và chỉ nhận các yêu cầu API, xử lý chúng và sau đó hiển thị chúng. Sau khi triển khai lên vercel, nó chạy tốt trong vài ngày, nhưng vấn đề CORS xuất hiện và nó ngừng hoạt động bình thường. Trong trường hợp này, tôi có nên có phần phụ trợ như nodejs không?
Xin chào, Taewan Kim!
Cảm ơn bạn rất nhiều vì đã tin tưởng và mua khóa học!
Bạn có thể vui lòng hỏi lại câu hỏi này trên bảng thông báo được không?
Tôi chỉ sử dụng vercel cho các dự án đồ chơi phản ứng.
Tôi chưa bao giờ sử dụng nó với máy chủ được đính kèm, vì vậy tôi nghĩ tôi cần biết vấn đề chi tiết hơn.
Nếu bạn mới bắt đầu mà không biết gì thì chắc hẳn bạn sẽ gặp rất nhiều khó khăn. Nếu bạn có bất kỳ kinh nghiệm nào với node.js, MongoDB, jest, v.v., tôi thực sự khuyên bạn nên sử dụng nó! Tôi tham gia lớp học đủ tốt để cảm thấy rằng học phí rẻ.
Trong khi phát triển với full stack, tôi đã phát triển nó bằng cách nhấn một nút ở mặt trước để gửi yêu cầu, kiểm tra dữ liệu và tạo API. Tôi đã tìm hiểu về khái niệm TDD khi làm việc trong dự án và điều đó thật tuyệt.