DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Migrate, Modernize and Build Java Web Apps on Azure: This live workshop will cover methods to enhance Java application development workflow.

Modern Digital Website Security: Prepare to face any form of malicious web activity and enable your sites to optimally serve your customers.

Kubernetes in the Enterprise: The latest expert insights on scaling, serverless, Kubernetes-powered AI, cluster security, FinOps, and more.

A Guide to Continuous Integration and Deployment: Learn the fundamentals and understand the use of CI/CD in your apps.

Related

  • Reading an HTML File, Parsing It and Converting It to a PDF File With the Pdfbox Library
  • A Maven Story
  • JPA Criteria With Pagination
  • Ways To Reduce JVM Docker Image Size

Trending

  • OpenTelemetry for Microservices Tracing and Observability
  • Querydsl vs. JPA Criteria, Part 5: Maven Integration
  • Mastering Microservices: Best Practices for Seamless Implementation
  • Understanding and Using Docker Containers in Web Development: A Guide
  1. DZone
  2. Coding
  3. Java
  4. Creating a Blogging Platform in Java: Part 1

Creating a Blogging Platform in Java: Part 1

In the first part of his series on creating a blogging platform in Java, Grzegorz Ziemonski shares his mindset on the genesis of his project and preparation.

Grzegorz Ziemoński user avatar by
Grzegorz Ziemoński
·
Jul. 16, 16 · Tutorial
Like (8)
Save
Tweet
Share
17.8K Views

Join the DZone community and get the full member experience.

Join For Free

It's been some time since I started blogging and I see a lot of room for improvement. I decided to create something open source that will produce real value and act as an example in my posts. Here it comes: Yet another blogging platform!

Overview

I want something as simple as possible. Here are a few key ideas:

  • Small amount of code with least dependencies (yes, I know that these two seem contradictory; I'll have to find the right balance).
  • Blog contents are stored in Git, preferably in a separate repo than the blog server—people can review my posts and suggest improvements via Pull Requests (they can even propose their own posts!).
  • Blog posts are written in markdown or something as easy.
  • Modifying the looks is super-simple.
  • I have an option to run my blog locally with a live preview.
  • RSS feed is generated.
  • Comments are available via disqus.

Tools

I'm currently thinking about using the following tools to create the project:

  • Java 8. An obvious choice for a Java related blog, though I might experiment a bit with Java 9 later.
  • Gradle as a build tool, probably the newest version. I'm not good at it, but I hate pom.xml's, so it's time to learn something else.
  • Spock for all kinds of tests. It will give the project some groove.
  • IntelliJ IDEA with default formatting settings. It's my favorite IDE and I don't want to bother contributors with stupid rules.
  • GitHub repository.

Anything else that joins the toolkit is yet to be decided.

Small Design Upfront

Before I actually start coding anything, I want to share with you my general design idea, that might (or not) be implemented later. I have two possible sources of contents—filesystem or a git repository, used in local and hosted mode respectively. I scan through the contents and generate HTML for each post. Over the content source, I set a "watch," checking for changes regularly (e.g. every second). If a change occurs, it triggers re-generating the post's HTML. For the views, I currently need just an index with headers and a single post view. HTTP routes can be resolved dynamically by adding "/" to index and everything else as a possible post.

I didn't spend a lot of time preparing it. I just wanted to have a clue what I'll be building, but not necessarily a complete picture.

Final Words

You are more than welcome to share your thoughts on the project in comments and contribute on GitHub.

Java (programming language)

Published at DZone with permission of Grzegorz Ziemoński, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Reading an HTML File, Parsing It and Converting It to a PDF File With the Pdfbox Library
  • A Maven Story
  • JPA Criteria With Pagination
  • Ways To Reduce JVM Docker Image Size

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: