An open API service indexing awesome lists of open source software.

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.

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.

![validation_code](https://user-images.githubusercontent.com/79333175/154308716-b86f1efe-f646-4a11-8dfe-cfffbae21e2b.jpg)