https://github.com/reafreitas1/lotto_backend
February/2022 - Backend project: "The Lottery". The entire backend for registering new users, validating data and linking to the database.
https://github.com/reafreitas1/lotto_backend
controllers eclipse gitbash java jsp model persistence pom postgresql tomcat-server vraptor
Last synced: 3 months ago
JSON representation
February/2022 - Backend project: "The Lottery". The entire backend for registering new users, validating data and linking to the database.
- Host: GitHub
- URL: https://github.com/reafreitas1/lotto_backend
- Owner: reafreitas1
- Created: 2022-02-15T18:21:02.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-11T18:23:53.000Z (almost 3 years ago)
- Last Synced: 2023-09-28T07:37:44.889Z (over 1 year ago)
- Topics: controllers, eclipse, gitbash, java, jsp, model, persistence, pom, postgresql, tomcat-server, vraptor
- Language: Java
- Homepage:
- Size: 23.9 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
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.
https://user-images.githubusercontent.com/79333175/154308557-4d596d26-ddf2-4c77-be6b-0b03bd50873f.mp4
***
Below is a video of data validation returning an error message to the user.
https://user-images.githubusercontent.com/79333175/154308389-4351789e-9bd9-45b4-a69d-3aa3cb1c4f3d.mp4
***
Below image of the code responsible for the validation.

![]()