Git Product home page Git Product logo

ci_05_02_03_dicegame_sb_security_thymeleaf_frontend's Introduction

Spring Boot MySQL, Security, Thymeleaf

Description

The dice game is played with two dice. If the result of the sum of the two dice is 7, the game is won, if not lost. A player can see a list of all the rolls he/she has made and the percentage of success.

To be able to play the game and make a roll, a user must register with a non-repeated name. Upon creation, it is assigned a unique numeric identifier and a registration date. If the user so wishes, you can not add a name and it will be called "ANONYMOUS". There can be more than one "ANONYMOUS" player. Each player can see a list of all the rolls they have made, with the value of each die and whether or not they have won the game. In addition, you can know your success rate for all the rolls you have made.

You cannot delete a specific game, but you can delete the entire list of runs for a player.

The software must be able to list all the players in the system, the success percentage of each player and the average success percentage of all the players in the system.

The software must respect the main design patterns.

URL's

Frontend: /page                     security
- GET:    /home                     "isAnonymous()"
- GET:    /home                     "isAthenticated()"

- GET:    /login    ?error ?logout  "permitAll"
- GET:    /register ?error          "permitAll"

- GET:    /players                  "isAthenticated()"

- GET:    /adminArea                "hasAuthority('ADMIN')"


Backend:  /page
- POST:   /actionRegister           -> Create a player.                 return: "redirect:/page/login?registrado=true"
- PUT     /update/{id}              -> change the name of the player.   return: "register"
- GET     /delete/{id}              -> deletes the player's rolls.      return: "redirect:/page/adminArea"

Home page /page/home

Login and Register in only visible if you are not authorized

Home page without login


Home page for players


Home page for Admin 'AdminArea only visible'



Login page /page/login

Login


Logout


Login Rejected


Login <- from Success register


Register page /page/register

Register


Register rejected by duplicated name


Register rejected by duplicated email



Players /page/players

"isAthenticated()"Any user or admin can play

Players page default


Players page at playing From where you can see you previous history rounds



Admin /admin/home

"hasAuthority('ADMIN')"As an admin you can edit, play or delete the games from any other player

Admin Area


Delete alert

References:

ci_05_02_03_dicegame_sb_security_thymeleaf_frontend's People

Contributors

miqueldebon avatar

Stargazers

Asger avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.