TV Show Project Level 400: Fetch much more data
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript
Hướng nghiên cứu
Bắt đầu trong repository của đối tác bằng cách pull branch main mới nhất và đọc implementation level 300 của họ trước khi so sánh với implementation của bạn. Thêm lựa chọn chương trình, việc lấy chương trình và tập từ TVmaze, các tùy chọn theo thứ tự bảng chữ cái, chức năng tìm kiếm và điều khiển tập hoạt động được, cùng một request cho mỗi URL; xác thực kết quả thông qua pull request bắt buộc đã được đối tác review.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Level 400
For level 400, you should work in the repo of your partner from level 200.
You do not need to re-add yourself as a collaborator.
Remember to change to the right directory on your machine, and pull the latest changes from their main branch.
Before writing any new code, look at their level 300 implementation.
Compare their implementation to yours. Think:
- How is it different?
- What do you prefer about your implementation?
- What do you prefer about their implementation?
- What did you learn that you didn't know before?
They should do the same with your repository.
Have a discussion about your answers to these questions. In class, together you should give a 3 minute talk about your conclusions.
Refactoring
Feel free to change anything in your codebase which you think will make it easier to work with, or to build new features.
Make a branch and pull request for yourself, and then have your partner review, making sure they understand the changes made.
Adding new functionality
Level 400 is about expanding beyond one TV show.
Until now, your site has only showed information about the episode of one TV show.
But TVmaze has information about lots of TV shows, all in the same format.
We want to display any of them.
Requirements
- Add a
selectelement to your page so the user can choose a show. - When the user first loads the page, make a
fetchrequest to https://api.tvmaze.com/shows (documentation) to get a list of available shows, and add an entry to the drop-down per show. - When a user selects a show, display the episodes for that show, just like the earlier levels of this project.
You will need to perform a fetch to get the episode list.
4. Make sure that your search and episode selector controls still work correctly when you change shows.
5. Your select must list shows in alphabetical order, case-insensitive.
6. During one user's visit to your website, you should never fetch any URL more than once.
[!NOTE]
Be careful when developing with fetch. By default, every time you make a small change to your app it will be restarted by live server - if you are fetching JSON on page load, the JSON will be downloaded again and again. These frequent HTTP requests may lead to the API permanently banning your IP address from further requests, or "throttling" it for some time. Worse, if they don't, they may cause performance issues for the API service we are using.
Send a pull request to your partner's repo with this functionality. Have them review, and when happy, merge your PR.
Screenshot of minimal version
Note: Provided your project meets the above requirements, it can look however you want.
Here is one example layout.


- Ngôn ngữ chính
- JavaScript
- Star
- 0
- Fork
- 276
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CodeYourFuture/Module-Data-Flows
-
Complete the ITP end survey Đang mở🏕 Priority Mandatory 📅 Sprint 3 Core Module-Data-Flows Submit:None 🦔 Size Tiny
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
Prepare a demo for Q&A workshop Đang mở🏕 Priority Mandatory 🐇 Size Small 📅 Sprint 2 Core Module-Data-Flows Submit:None
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
🏕 Priority Mandatory 🐂 Size Medium 📅 Sprint 3 Core Module-Data-Flows Submit:None
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
-
🏕 Priority Mandatory 🐂 Size Medium 📅 Sprint 2 Core Module-Data-Flows Submit:None
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
-
🏕 Priority Mandatory 🐂 Size Medium 📅 Sprint 1 Core Module-Data-Flows Submit:None
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 35/100
Tất cả issue của CodeYourFuture/Module-Data-Flows
Issue tương tự
-
Update HugeIcons library Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
antfu-collective/icones#398 ·
-
ECmail.com Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
wesbos/burner-email-providers#554 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
radiantearth/stac-browser#1023 ·
-
HMR stops working Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
components-web-app/docs#92 ·