School project consisting of a simple RESTful blog developed with Spring Boot. Without registering, you can only view the posts already entered and the related comments. By default it is possible to register as basic users who can only comment on the posts. To register as a ADMIN user it is necessary to change the roles field of the USER database table from USER to ADMIN.
Once the Microblog is downloaded, you can open it with any IDE that supports the JDK (JDK 11 or higher is recommended).
After running the application, you must go to the browser at: https://localhost:8443
. The browser will report the site as unsafe (because the certificate for HTTPS is self-signed), you will need to click on "Advanced" and then on "continue on localhost".
To test the RESTful APIs it is possible to use an external software such as Postman (by disabling the "SSL cerificate verification" entry, as already written, the certificate is self-signed). Or you can use the Microblog Client, which I developed.
The database used is H2 (in-memory database), to insert data permanently it is necessary to insert it in the data.sql file. To access the database console you need to run the application and go to the browser with the address: https://localhost:8443/h2
.
To see the swagger documentation you need to start the application and go to the link:
https://localhost:8443/swagger-ui.html