Skip to content

February/2022 - Backend project: "The Lottery". The entire backend for registering new users, validating data and linking to the database.

Notifications You must be signed in to change notification settings

reafreitas1/lotto_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

validation_code

About

February/2022 - Backend project: "The Lottery". The entire backend for registering new users, validating data and linking to the database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published