lotto_backend
Java | Hibernate | VRaptor | PostgreSQL | TomCat
Backend features:
- Register users;
- Save user data (such as: name, email, time and date of registration) in the Database table;
- Validate if the data that the user registers is in accordance with the expected;
- Return error messages to the user if he is registering wrong data.
I developed the entire MVC Architecture in Java;
- Model: models the database table, with create and update methods; gets and setters to access and change each item in the table as a variable;
- View: each web page is a JSP file (HTML that JAVA understands) and has a controller, I can have methods in the controllers or directly in the JSP;
- Controller: are exactly the files that contain all the methods.
Video below showing the active TomCat server, code, registration screen and finally the recording of user data in the database.
register.mp4
Below is a video of data validation returning an error message to the user.
full_validation.mp4
Below image of the code responsible for the validation.
