美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇

COMP 315代做、代寫Java/c++編程語言

時間:2024-05-02  來源:  作者: 我要糾錯



Assignment 2: Typescript and React
COMP 315: Cloud Computing for E-Commerce
April 27, 2024
1 Introduction
A reactive website will scale and reorder elements to suit the screen size of the device being used to access it. A
dynamic website will update the elements of the page without the need for a full reload. In this assignment you
will expand upon a skeleton program in order to build a dynamic and reactive e-commerce front end website.
2 Learning outcomes
By the end of this assignment, you will:
• Be able to implement functions using Typescript.
• Be familiar with how to use React components and hooks.
• Have a template website that you could expand upon for a portfolio piece.
3 Problem description
For this task, you have been provided with a skeleton website, as well as the assets to populate it with. At
the moment the site displays the: name, picture, rating, and price of a collection of items for sale. If you type
into the search bar, it will only display items that have your search term within their name. You must add the
following functionality:
• An indicator showing the number of search results or products available.
• Sorting the items by: name, price, or rating.
• The ability to show only in stock items in the search results.
• Adding or removing items from the shopping basket.
• A total cost of products in the shopping basket.
4 Initial setup
The skeleton code has been provided for you, which is a basic e-commerce website similar to the one shown in
lectures. Ensure that you have Node.js installed on your computer, this should come with V ite. Download
the zip file of this code and extract it to a suitable place on your computer. Navigate to that folder in your
terminal, and type npm install. Once this installation has completed, type in npm run dev, which should host
the website locally for you. Take the localhost address shown in the output and type it into your browser to
see the website. There are 4 JSON files included in the ’Assets’ folder, which are random products 1, 100, 150,
and 175. Each of these JSON files contains a list of products to be shown on the website. Each product has
the attributes outlined in Table 1, with the images being generated using Adobe Firefly.
1
Attribute name Note
ID This is a unique identifier for each product, and is an integer
name The name for each product.
price The price of the product in pounds.
category This is the general category of the product.
quantity The number of this product that is currently available in stock. This is a non-negative
integer.
rating This is a real number rating of the product between 0 and 5.
image link The file location of the promotional image.
Table 1: The attributes that are stored for each product
5 Developing the website
5.1 The results indicator
When searching for products, it is often useful to know exactly how many products the current search has
returned. This can help make the website feel more reactive. In the results − indicator paragraph tag, add
a notification about how many results or products the current search query has returned. If the search bar
is empty, then the the output should be nP roducts where n is the number of products. If there is only a
single product then the output should be 1P roduct. If the search bar is not empty, then the output should be
nResults where n is the number of products returned by the search query. If there is only a single product
returned by the query, then it should say 1Result. If there are no results returned by a query then the output
should be Nosearchresultsfound.
5.2 Enhance search functionality
When looking at a list of products, a useful feature is being able to sort them by some attribute such as price
or rating. Add functionality to the select tag inside of the search − bar, so changing the selected option will
result in that form of sorting being applied to the results. Once this task has been completed, add the following
functionality to the inStock checkbox input. When this checkbox is ticked, the results should only include
products that have a quantity larger than 0. Hint: this can be accomplished by using a combination of a state
and a hook.
5.3 Adding to the shopping basket
Each product currently has a button underneath that says ’Add to basket’. Update this code so that if the
quantity available of the product is 0, the button instead says ’Out of stock’ and is disabled. Add a function
to the ’Add to basket’ button that passes the information to a shopping basket variable in App.tsx. This
variable should be a list of type BasketItem. Adding multiple instances of the same product should increase
the quantity property of the relevant basket instance. Do not worry about disabling the product’s button if
the quantity added to the basket is more than the quantity available. Hint: The parent/child example given in
Tutorial 4 - question 7 can give you a good starting point.
5.4 Visualising the basket
Now that the data about the basket is being collected, we should visualise it for the user. If there are no items
in the basket then the shopping − area div should contain a paragraph text saying ’Your basket is empty’. If
the shopping basket variable contains a product, then the shopping −area div should contain that information.
Each item in the basket should be surrounded by a div with the class ’shopping-row’, and a suitable key such as
the name of the item. Inside of that div there should be another div with the class ’shopping-information’, and
a button with ’Remove’ text. The ’shopping-information’ div should contain a paragraph tag which shows the
information about the product in the format [P roductname]([P roductprice]) − [P roductquantity]. When the
’Remove’ button is pressed, then the quantity of that product in the basket should be reduced by 1. If pressing
that button reduces the quantity of the product to 0, then that item should be removed from the shopping
basket. At the bottom of the shopping −area div should be a paragraph tag with the total cost of the shopping
basket. This should be in the form of T otal : [T otalbasketcost]. This value should be shown to 2 decimal places.
2
6 Marking
Your completed assignment will be submitted through the Canvas submission system. This will account for
10% of your overall module score. You may use any library that comes with a default installation of Node.js.
Each variable should have the appropriate type, if the ’any’ type is required than a comment must be included
that justifies it’s use. This rule is in place to encourage the use of Typescript type checking instead of just
Javascript. Your work will be submitted to an automatic plagiarism/collusion detection system, and those exceeding a threshold will be reported to the Academic Integrity Officer for investigation regarding adhesion to the
university’s policy https://www.liverpool.ac.uk/media/livacuk/tqsd/code-of-practice-on-assessment/appendix
L cop assess.pdf.
7 Deadline
The deadline is 23:59 GMT Sunday the 12th of May 2024. Late submissions will have the typical
5% penalty applied for each day late, up to 5 days. Submissions after this time will not be marked. https:
//www.liverpool.ac.uk/aqsd/academic-codes-of-practice/code-of-practice-on-assessment/
8 Expansions for a portfolio piece
If you decided to expand upon this short example in order to create a portfolio piece, which I stress is not
something you have to do for the assignment, then you will need to make several changes. My suggestion for
these changes would be:
• Redesign the site to be more visually appealing, focus on the reactivity and showing off that it works on
all form factors of device.
• Use Next.js to add individual pages for each product. This will also mean that you’ll have to look into
how to allow the user to return to the search results.
• Connect to a database, such as Neo4j, as this is crucial in showing you understand role of the front end

.請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp


















 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:代寫COM6511、代做Python設計程序
  • 下一篇:代寫program、代做c/c++,Python語言編程
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇
    国产精品扒开腿做爽爽爽a片唱戏 亚洲av成人精品一区二区三区 | 精品国产大片大片大片| 中文幕无线码中文字蜜桃| 黄色精品视频在线观看| 免费在线观看你懂的| 国产清纯白嫩初高中在线观看性色| 欧美一级特黄高清视频| 青青草成人免费视频| 国产ts在线观看| 亚洲精品电影院| 日韩欧美黄色网址| 亚洲午夜福利在线观看| 国产精品久久久久久久无码| av成人免费网站| 日本不卡视频一区| 欧美熟妇精品一区二区| 亚洲成人av免费观看| 日批视频在线看| 中国老熟女重囗味hdxx| 人妻激情偷乱频一区二区三区| 给我免费观看片在线电影的| 亚洲一区二区自偷自拍 | 日本中文在线视频| 久久亚洲AV成人无码国产野外| 真实乱视频国产免费观看 | 精品人妻一区二区三区视频| 久久精品老司机| 亚洲成a人无码| 中文字幕精品久久久| 精品一区在线观看视频| 无码 人妻 在线 视频| 美女久久久久久久久久| 99re久久精品国产| 欲求不满的岳中文字幕| 好男人香蕉影院| 中文字幕在线播放视频| 中文字幕人妻一区| 国产精品99久久久久久成人| 波多野结衣福利| 成年人网站免费看| 制服 丝袜 综合 日韩 欧美| 久久久午夜精品福利内容| 久久久久无码精品| 国产精品一区二区入口九绯色| 999精品免费视频| 91玉足脚交白嫩脚丫| 天海翼在线视频| 国产乱了高清露脸对白| www..com.cn蕾丝视频在线观看免费版 | 色屁屁草草影院ccyy.com| www.狠狠爱| 国产精品无码一区二区三区| 在线看的片片片免费| 亚洲观看黄色网| 熟妇高潮精品一区二区三区| 精品一区二区6| 国产成人精品一区二区三区在线观看| 懂色av懂色av粉嫩av| 亚洲av熟女国产一区二区性色| 亚洲一区二区观看| 亚洲一区二区三区无码久久| 免费三级在线观看| 少妇高潮在线观看| 国产精品白丝喷水在线观看| 欧美日韩高清丝袜| 亚洲激情图片网| 午夜激情福利网| 日韩精品国产一区| 亚洲国产精品狼友在线观看| 成人自拍小视频| 中文字幕有码在线播放| 99热精品免费| 涩视频在线观看| 97人妻天天摸天天爽天天| 亚洲女优在线观看| 欧美图片自拍偷拍| 三级黄色录像视频| 国产ts丝袜人妖系列视频| 欧美极品jizzhd欧美18| av成人免费网站| 四虎永久免费在线| 欧美日韩中文字幕视频| 久久发布国产伦子伦精品| 在线观看国产精品一区| 91视频啊啊啊| 在线免费看av网站| www.xx日本| 亚洲色图100p| 一区二区三区影视| 全黄一级裸体片| 久久人妻少妇嫩草av无码专区| 久久成人小视频| 国产免费久久久久| 久久免费手机视频| 91大神福利视频| 污污视频网站在线免费观看| xxx在线播放| 国产精品20p| www.日本高清视频| 中文字幕电影av| 欧美一区二区三区影院| 伊人在线视频观看| 日本黄色www| 手机av免费看| 久久国产波多野结衣| 成年人小视频在线观看| japanese在线观看| 日本免费www| 国产肉体xxxx裸体784大胆| 国产ts在线观看| 在线天堂www在线国语对白| 久久久久久久久免费看无码| 精品人伦一区二区三电影| 小早川怜子久久精品中文字幕| 动漫性做爰视频| 国产xxxx视频| 手机毛片在线观看| 久热这里有精品| 99久久综合网| 99热在线观看精品| 蜜桃av免费看| 黄色录像二级片| 加勒比一区二区| 精品国产乱码久久久久夜深人妻| 精品人妻一区二区免费| 中文字幕5566| 中国特级黄色片| 亚洲自拍偷拍图| 91av在线免费| 国产伦精品一区二区三区妓女下载 | 日韩激情小视频| 朝桐光av一区二区三区| 亚洲波多野结衣| 国产尤物在线播放| 精产国品一区二区三区| 99久久久无码国产精品不卡| 亚洲AV无码国产成人久久| 午夜精品福利在线视频| 波多野结衣先锋影音| 无码人妻丰满熟妇区毛片蜜桃精品| 加勒比精品视频| 免费在线观看a视频| 一区二区三区影视| 97精品人妻一区二区三区蜜桃| 亚洲天堂黄色片| 喷水视频在线观看| 99久久久无码国产精品衣服| 久久高清内射无套| 国产精品无码网站| 色婷婷在线视频观看| 免费成人深夜夜行p站| 手机av在线看| 欧美大波大乳巨大乳| 性xxxxxxxxx| 性生活一级大片| 一级片视频免费看| www日本在线观看| 1024在线看片| 人人妻人人澡人人爽人人精品| 国产呦小j女精品视频| 亚洲一区二区三区四区av| 无码少妇精品一区二区免费动态| 男人与禽猛交狂配| 亚洲av片不卡无码久久| 国产一级免费片| 少妇高潮一69aⅹ| 日本免费福利视频| 无码人妻精品一区二区三应用大全| 日韩综合第一页| 中文字幕 自拍| 国产黄a三级三级| 亚洲怡红院在线观看| 日本r级电影在线观看| 日本aⅴ在线观看| 不许穿内裤随时挨c调教h苏绵 | 欧美黑人性猛交xxx| 人体私拍套图hdxxxx| 国产精品suv一区二区88| 国产大尺度视频| 成人无码av片在线观看| 国产chinesehd精品露脸| 男人的天堂影院| 欧美一区二区三区爽爽爽| 久久久久亚洲av无码专区首jn| www.超碰97| 国产麻豆剧传媒精品国产av| 成人在线观看高清| 少妇高潮惨叫久久久久| av黄色在线免费观看| 成人午夜精品无码区| av网站有哪些| 中文字幕在线播放视频| 成人在线短视频| 在线播放av网址| 亚洲成a人无码| 91丝袜在线观看| 97伦伦午夜电影理伦片| 无码人妻精品一区二区中文| 国产又黄又粗又猛又爽的视频| 黄色在线免费播放|