If you have installed Maven on your machine then use the below command:
mvn clean package
If you haven't insatlled Maven on your machine then use below command:
./mvnw clean package
Note: Go to root directory of the project and execute above command.
Before running Spring boot blog application, you need to create the MySQL database.
Use the below SQL database to create the MySQL database:
create database myblog
Database name - myblog
Use below command to run Spring boot application:
mvn spring-boot:run
Once you run Spring boot application, Hibernate will create the database tables autimatically. However, you can refer to DDL scritp for all tables here: https://github.com/RameshMF/springboot-blog-rest-api/blob/main/myblog-ddl-script.sql
User below Insert SQL statements to insert records into roles table:
INSERT INTO `myblog.roles` VALUES (1,'ROLE_ADMIN'),(2,'ROLE_USER');
Now, Spring boot blog application is ready to use.