COMP S368 Networks and Distributed Systems


COMP S368 Networks and Distributed Systems - Assignment 2
Question 2 [70 marks]
General requirements for Assignment-2
For this assignment, your task is to develop a simple Proof-of-concept Web Application. You can see a demo app here : More complicated feature and layout will be provided in next Assignment (e.g. image upload, place bid). This PoC only covers what we have discussed so far.
A template project has been prepared for you in the file “webportal.zip” or at here. You are required to implement functions and modify program codes in the following files:
• Events.java
• EventsRepo.java
• EventsValidator.java
• EventsController.java
• CustomControllerAdvice.java
• templates\events\index.html
• templates\events\form.html
There are comments with question number in each of the files (as shown below), and you need to implement the code according to their comment description. For those comments without question number are just reference purposes only.
The primary focus of the coding task include: 
a. JPA entity and its annotation
b. JPA Validation annotation
c. JPA Repository and JPQL coding
d. JPA CRUD coding
e. Spring Boot MVC controller coding
f. Spring Boot MVC view template coding 
g. Advance : Spring Boot Custom Validation
h. Advance : Common layout view template
i. Advance : Logging
You should screen capture these 2 screens of Items and Events list view with your students Id and the timestamp of your local system like below; to proof your application runs successfully and it is your own work. Failure to provide below screen will deduct 35marks for Q2. Place your screen capture at the end of this document.

Business logic requirements for Assignment 2
1. You can create, retrieve, update and delete 2 entities : Events and Items.
2. CRUD with validation and custom error handling for entity Items has been completed for you references
3. There are some validations for events as listed in next section
4. Custom Error page should show instead of default blank error page for HTTP 404, 500 or other HTTP Error


5. Log file should log down those error so that we can search the detail in log file by using the error Id (i.e. the UUID Code)
Validation
1. Event Code should be unique amount whole DB. Checking must exists in both create and update action. Error message as shown below

2. Some field level checking as shown below
a. Event date must be in future
b. Length checking as shown below for Code, Name, Description
c. Code, Name, Description must be provided

3. When event is ended, cannot perform Update and Delete

Marking criteria
1. Either copying from others or from Generative AI like ChatGPT is prohibited. All work should be your own. If plagiarism is detected, a first offense will result in a score of 0 for the entire assignment. A second offense will be reported to the course coordinator for further action. A third offense and subsequent offenses will be reported directly to the Dean of the School of Science & Technology, which may lead to an immediate failure in this course.
2. Your submitted program should be able to compile. If the code cannot be compiled, no marks can be awarded for this question.
3. Your submitted program should be able to run. If the code cannot run, at most 30 marks can be awarded for this question.
4. The code should fulfill both the general and specific requirements as in the “General requirements for Assignment-2”, “Business logic requirements for Assignment 2” and “Validation” section as well as those in the Java and html files.
You 2 screen captures should place at below
 
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值