-
Notifications
You must be signed in to change notification settings - Fork 8
Project 4: Hyper Quiz
The main goal of the project is to implement a web application allowing the Users (Players and Administrators) to create and take different Quizzes (ala Kahoot - https://kahoot.com/ :) online.
All Users should have following common attributes:
- id (generated automatically) - long number;
- username - string 2 to 15 characters long - word characters only, unique within the system, cannot be changed;
- email - should be valid email address, unique within the system, cannot be changed;
- password - string 8 to 15 characters long, at least one digit, one capital letter, and one sign different than letter or digit, NOT sent back to the User clients for security reasons;
- gender - MALE / FEMALE enumeration;
- role - PLAYER or ADMIN enumeration, PLAYER by default, editable only by Administrators;
- picture of the user (optional) - valid URL, if missing should ne substituted with an avatar according to the gender;
- description (optional) - string 20 - 250 characters long;
- metadata (optional) - string up to 512 characters long, visible and editable only by Administrators;
- status - validity status of the user account (ACTIVE, CHANGE_PASSWORD - should change password on login, SUSPENDED, or DEACTIVATED), visible and editable only by Administrators;
- quizzes - list of all Quizzes created by the current User;
- created (generated automatically) - time stamp of the moment the user account was created;
- modified (generated automatically) - time stamp of the moment the user account was last modified;
- results - list of all Results from Quizzes the Player has taken;
- overallScore - integer number representing Player's experience (sum of all scores form Quizzes taken), to be transformed to Rank enumeration, using formula chosen by you.
- quizzesBlocked - list of Quizzes the Administrator has temporarily blocked for non-compliance with the site policies;
All Users should be able to add, browse, search, and play Quizzes. The Results of different Players should be presented and compared using a leader dashboard for each Quiz. Administrators can add and play the Quizzes but their results are not remembered permanently, nor they participate in the Quiz leader dashboards. All users should be able to signal (report) suspicious Quizzes, and Administrators should be able to block such Quizzes temporarily, until compliance with site policies is established (all such communication will happen by email, outside of the Hyper Quiz system).
Each Category has the following structure:
- id (generated automatically) - long number;
- name - string 2 to 120 characters long;
- description (optional) - string 10 - 500 characters long, supporting Markdown syntax;
- tags - string including comma separated tags, allowing to find the Publication by quick search;
- created (generated automatically) - time stamp of the moment the entity was created;
- modified (generated automatically) - time stamp of the moment the entity was last modified;
- id (generated automatically) - long number;
- category - the Category the Recipe belongs to;
- title - string 2 to 120 characters long;
- author - the User sharing the Recipe;
- shortDescription - string 2 to 250 characters long;
- cookingTime - integer number in minutes;
- usedProducts - string 20 - 500 characters long, supporting Markdown syntax;
- picture - of the cooked meal, valid URL to the picture;
- description (optional) - string 150 - 2500 characters long, supporting Markdown syntax;
- tags - string including comma separated tags, allowing to find the Recipes by quick search;
- comments (optional) - the list of Comments about the Recipe;
- created (generated automatically) - time stamp of the moment the entity was created;
- modified (generated automatically) - time stamp of the moment the entity was last modified;
All Users should be able to add Recipes and Comments about the Recipes sharing personal experience and ideas. Each HomeCook should be able to manage (edit / delete) her/his own Recipes and Comments. All Comments should be visible from the Recipe details view. The Administrator should be able to view and manage (edit / delete) Comments and Recipes of all Users.
Each Comment should have the following attributes:
- id (generated automatically) - long number;
- author - the Comment's author (User);
- recipe - the Recipe the comment is about;
- text - string 5 - 1500 characters long, supporting Markdown syntax;
- url (optional) - the URL of a web resource Comment's author wants to attach, should be a valid URL;
- created (generated automatically) - time stamp of the moment the entity was created;
- modified (generated automatically) - time stamp of the moment the entity was last modified;