In this repository, you are going to find, an example of web services based on Java that interacts with a Maria Database through hibernate ORM
- MariaDB to storage the database
- Netbeans 8.2 (I developed this project in Netbeans 8.2 but, you can use other IDE)
- Any REST client (Don't you know what it is? hit here)
- Clone this repository
- The SQL script of the database is inside the db folder.
- Runs the SQL script in the MariaDB client
- Creates a new user in the table USER
- Opens the Netbeans project server
- Modifies the hibernate.cfg.xml file
- hibernate.connection.url, it contains the URL of the host, the port, and the name of the database
- hibernate.connection.username, it contains the username to access the database
- hibernate.connection.password, it contains the password to access the database
- Finally, run the project
At this point, you will be able to use the endpoints
- GET path
- POST new position
- POST new destiny
I also shared the workspace of Insomnia (it is a REST Cient). So, you can try the web services.
I developed a SPA to use these web services as a backend. You can find the angular project here