Build a Markdown-based Blog with Spring Boot — Part 1

Build a Markdown Blog with Spring Boot Part 1

Generating Project

Just like how every fun Spring Boot adventure begins, go to start.spring.io (Spring Initializr) and configure our project.

Spring Initializr configuration

Opening the project

Once the .zip file has been extracted, the project can be imported into the IDE.

Opening the project with IntelliJ IDEA
Directory structure in IntelliJ IDEA

Defining entities

Our blog needs two entities — posts and authors.

Entity-Relationship Diagram for the two entities
Entity-Relationship Diagram

Defining POJOs

The Plain Old Java Object (POJO) definitions for the entities are as described below.

Post entity POJO
Author entity POJO
LocalDateTimeConverter class

Code

I will end things at this much for now. We will continue the project from the next part of this series.

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store