Skip to content

Latest commit

 

History

History
33 lines (32 loc) · 1.11 KB

Run.md

File metadata and controls

33 lines (32 loc) · 1.11 KB

Steps to Run Spring Boot Blog App

1. Maven Build the Project

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.

2. Create a Database

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

3. Run Spring Boot Project

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

4. Insert Data

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.