Prepare a assignment on Dynamic review site
Introduction That is a person assignment during which you’ll discover the usage of information interchange between internet servers and browsers, dynamic building of web page content material, and API design, utilizing PHP, JavaScript, XML, and JSON.
Particulars of the burden of the assignment and due date are given within the course description.
Please word: you might adapt the appliance to the review of something you would like – inside tasteful boundaries – however you must hold the essential schema the identical. For instance, you would do Assessments of guitars, microbreweries, operating tracks, nightclubs, coffees, television reveals, sneakers, video games, hen parmigiana or related. Regulate desk names and international keys appropriately.
Job Description
Introduction Raccoon Critiques is a web site that permits raccoon fanatics to attach over their shared curiosity.
Every raccoon has a devoted web page that reveals a picture and a title, a record of Assessments, and a few type of common ranking.
Customers can submit new Assessments of a raccoon, together with their title, some review textual content, and a ranking.
Database A easy database with two tables accommodates information about raccoons, and their Assessments.
The database has the next construction:
Raccoon(id, title, image_url)
Review(id, raccoon_id, reviewer_name, review, ranking)
Every report within the Raccoon desk refers to a single raccoon, and every report within the Review desk is a review of a single raccoon. Every Raccoon might have many Assessments.
CRICOS Supplier No. 00103D ITECH3224 6224 Assignment 2 1420 Web page 2 of four
The assignment duties are carefully related to the lab work of subjects 7 to 10. Code and examples from lectures and labs needs to be a helpful information all through this assignment. The assignment requires a variety of recordsdata and a report back to be produced. The report ought to reply to written duties which can be included under.
Preliminary Job Create the database utilizing your MySQL abilities. You will have a minimum of four raccoons, with a minimum of 2 Assessments every. Chances are you’ll normalize the database if you want, to incorporate a devoted “reviewer” desk.
Invent your individual information – title raccoons after your loved ones, favorite bands, explorers, film characters, or mythological figures, for instance.
Use acceptable information sorts – specifically Review.review needs to be a TEXT area to permit lengthy entries.
Review.ranking is an integer worth from 1 to five inclusive, the place 5 signifies that that is a tremendous raccoon.
Submit your SQL file as a part of your assignment.
XML and JSON markup Mark up the whole information utilizing XML tags and put it aside as an .xml file. Examine that the file is well-formed and report the strategy used. Draw a diagram displaying the construction of the DOM tree related to the .xml file, utilizing information from any ONE report. Embody the foundation factor, node sorts, components and attributes.
Equally, mark up the whole information utilizing JSON and put it aside as a .json file. Examine that it’s legitimate JSON and report the strategy used to validate.
Submit each recordsdata as a part of your assignment.
Again-end API
Create a RESTful XML or JSON API (your alternative), implementing, at minimal, the next performance. Use the HTTP technique laid out in parentheses:
• Checklist all raccoons (GET) o Ought to return raccoon id, title and image_url for all raccoons, with out Assessments o Use an elective Question Assignmentstring/GET parameter to permit sorting by title & common ranking
• Retrieve all particulars for a single raccoon (GET) o together with Assessments
• Create a new review/ranking (POST) • Delete a review/ranking (DELETE) • Replace an current review/ranking (PUT)
Observe HATEOAS (Hypermedia because the Engine of Software State) practices. Embody a word in your report about how you have got adopted HATEOAS.
Underneath Apache, this step would require configuring a .htaccess file to permit utilizing clear URLs underneath the api folder (with out a .php extension)
Entrance-end Create an HTML/CSS/JS web page which makes use of JavaScript, the DOM and your back-end API to:
• Show a menu of all raccoons. Permit sorting the menu by title and ranking
• Show a person raccoon’s particulars when the menu merchandise is chosen, together with the picture and the typical ranking
anand
Spotlight
anand
Spotlight
anand
Spotlight
anand
Spotlight
anand
Spotlight
anand
Spotlight
anand
Spotlight
anand
Spotlight
CRICOS Supplier No. 00103D ITECH3224 6224 Assignment 2 1420 Web page three of four
• Permit the consumer to submit a new review/rating, which shall be displayed instantly within the review record, and upon which the raccoon’s common shall be up to date from the server
• Periodically (each 30 seconds), ballot the main points for the present raccoon and show any new Assessments
Be aware: This activity might require discovering pictures to make use of. Think about using Wikimedia Commons to search out pictures with permissive licenses.
All performance needs to be carried out utilizing JavaScript, the DOM and the API, with out reloading/refreshing the browser web page.
Bonus activity (Elective!) Derive your averaging and sorting code based mostly on the method listed right here: http://www.evanmiller.org/ranking-items-with-star-ratings.html
Further activity for ITECH6224 college students
On the subject of “Session hijacking and session fixation” establish 4 (four) related, unbiased assets. Use these assets to put in writing an essay discussing the subject in your individual phrases. Take care to quote appropriately. Phrase depend needs to be 450-550 phrases (excluding references)
Report contents
1. The theme of the review site (eg. Raccoon Review) 2. Assertion of completion three. DOM diagram four. Essay activity (ITECH6224 solely) 5. Give particulars of any help acquired (aside from instructing employees).
Additional particulars
Consult with the Course Description for particulars of submission to Moodle, late assignments, extensions, particular consideration, plagiarism, scholar help, presentation of educational work and adopted reference model.
Submission
All recordsdata needs to be zipped and uploaded to Moodle by the due date and time.
http://www.evanmiller.org/ranking-items-with-star-ratings.html
anand
Spotlight
anand
Spotlight
CRICOS Supplier No. 00103D ITECH3224 6224 Assignment 2 1420 Web page four of four
ITECH3224/6224 World Broad Net Expertise 2 School of Science
Assignment 2 Marking Information
Title ID Marker
Criterion Most Obtained
.sql file – necessities happy 1
.xml file – Correct – Effectively-formed
2 1 1
.json file – Correct – Syntactically legitimate
2 1 1
Again-end API – Clear RESTful (resource-based) design, makes use of HATEOAS method – Checklist & Particulars (1), New review/ranking (1), Delete (1), Replace (1) – Type based mostly on question parameter
6 1 four 1
Entrance-end (Should use API to assemble) – Menu – Particulars, together with picture – Submit a new review/rating, together with record and common replace – Automated replace
four 1 1 1 1
Written activity (ITECH6224 solely) – Content material – Adherence to tutorial requirements
5 three 2
Report contents – Theme and statements of completion/acknowledgements. Doc requirements. – DOM diagram
2 1 1
Bonus! – Type utilizing Bayesian confidence
2 2
High quality of code: – Modularity – file and code construction. Not monolithic. – Indentation/structure, naming scheme – Use of feedback, together with high quality and accuracy. Feedback don’t merely narrate code
however illuminate intent and design choices.
three 1 1 1
Totals – ITECH3224 – ITECH6224
Closing Mark (scaled, right to 1 decimal place. Most of 20 marks)
20 25
20
Feedback:
ITECH3224/6224 World Broad Net Expertise 2
School of Science
Assignment 2 – Dynamic review site
Introduction
Job Description
Introduction
Database
Preliminary Job
XML and JSON markup
Again-end API
Entrance-end
Bonus activity (Elective!)
Further activity for ITECH6224 college students
Report contents
Additional particulars
Submission
ITECH3224/6224 World Broad Net Expertise 2
Assignment 2 Marking Information