Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.
/ Microblog Public archive

A simple RESTful webapp developed with Spring Boot

License

Notifications You must be signed in to change notification settings

Alessio789/Microblog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microblog

Overview

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.

Usage Guide

Once the Microblog is downloaded, you can open it with any IDE that supports the JDK (JDK 11 or higher is recommended).

Web Application

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".

RESTful API

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.

Database Console

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.

Swagger Documentation

To see the swagger documentation you need to start the application and go to the link: https://localhost:8443/swagger-ui.html