Books Index/Create/New Routes - Node.js/Express/MongoDB Course #3
Mô tả
In this video we will be setting up the book's Index/Create/New routes. To do this we will need to: 1. Create a book model 2. Create a book controller 3. Create book views 4. Interact with our database to find and create books 5. Handle validation errors 6. Setup file upload 7. Store uploaded files
Danh sách bài giảng (1 bài)
Bài 1: Books Index/Create/New Routes - Node.js/Express/MongoDB Course #3
Video bài giảngBài kiểm tra Quizzes (0)
Chưa mở khóaĐánh giá từ học viên
Nhận xét và trải nghiệm thực tế từ các học viên đã đăng ký tham gia khóa học này.
Dựa trên 10 lượt đánh giá từ học viên
Đăng nhập để đánh giá khóa học
Bạn cần đăng nhập và tham gia khóa học để có thể gửi đánh giá và nhận xét.
Tất cả đánh giá 10
My previous video in this series had a corrupted clip in the middle, so I had to re-render and re-upload the video.
Writing this on 07.01.2021:
In the file routes/book.js I had to change the line:
>const imageMimeTypes = ['images/jpeg', 'images/png', 'images/gif']
to:
>const imageMimeTypes = ['image/jpeg', 'image/png', 'image/gif']
In other words, replace "images" with "image".
I have been coding for only the past 6 months or so and find this extremely advanced. There are so many new concepts being introduced to me that it is a bit overwhelming. Hopefully in time I can wrap my head around them. My plan is to use this project as a springboard to create my own blog (with my own server) to document the journey of me and my wife converting our camper van!
In the case you are getting an error creating a book at around 29:00 because it cannot read your book cover, change the imageMimeTypes const so "images/jpeg" becomes "image/jpeg" and so on with the other types of files
Bro ur my savior, this is one of the best tutorials I have watched, it gives full guidance instead of skipping some important concepts
If anybody encounters an issue and can't solve it on their own, I suggest downloading the codes from Kyle's GitHub repository and match them with your own code. That way you can find out if you've missed something while writing your code. It's a bit of a tedious process, but I found that it helps.
You are the best of the best bro.
I must admit that your way of teaching and explaining is so clean and professional. Good bless you.
Your videos are so short but have a deep and broad explanation.
Thank you so much for doing this. I literally spent like 2 hours debugging just realizing that I misspelled "value" in the _form_fields.ejs file. I really took the time to read through every single file to understand the material!