bvn13 / SpringBlog

A simple blogging system implemented with Spring Boot/MVC/JPA + Hibernate + MySQL + Redis + Bootstrap + Jade.
BSD 3-Clause "New" or "Revised" License
25 stars 6 forks source link
blog blog-engine flexmark java markdown spring spring-boot spring-boot-2

SpringBlog

SpringBlog is a very simple and clean-design blog system implemented with Spring Boot. I had put it on production for my personal bvn13's blog since 2017-11-03.

SpringBlog is powered by many powerful frameworks and third-party projects:

Changelog

2018-04-19

2018-01-29

2017-12-25

2017-12-22 - SpringBlog version 2.8.0 is released

2017-12-21

2017-11-27

2017-11-23

2017-11-21

2017-11-20

2017-11-15

2017-11-14

2017-11-13

2017-11-11

2017-11-09

2017-11-08

2017-11-07

2017-11-03

Development

Before development, please install the following service software:

Edit the spring config profile src/main/resources/application.yml according to your settings.

And start MySQL and Redis first before running the application.

# If you're using Ubuntu server

# Install MySQL
apt-get install mysql-server
service mysql start
mysql -u root -p
>> create database spring_blog;

# Install Python pygments
apt-get install python-pip
pip install pygments
# If you want to enable redis cache
# Install redis server first, you can find instructions
# from https://www.digitalocean.com/community/tutorials/how-to-install-and-use-redis
service redis_6379 start

This is a Gradle project. Make sure Gradle is installed in your machine. Try gradle -v command. Otherwise install in from http://www.gradle.org/. I recommend you import the source code into Intellij IDE to edit the code.

# Start the web application
./gradlew bootRun

Development

How to import the project into Intellij IDEA and run from the IDE?

  1. Clone the project git clone https://github.com/Raysmond/SpringBlog.git
  2. Download all dependencies cd SpringBlog ./gradlew idea
  3. Open the project in Intellij IDEA.
  4. Run Application.java as Java application.
  5. Preview: http://localhost:8001 Admin: http://localhost:8001/admin , the default admin account is: admin@admin.com, password: admin

Lombok is required to run the project. You can install the plugin in Intellij IDEA. Reference: https://github.com/mplushnikov/lombok-intellij-plugin

Deployment

License

Modified BSD license. Copyright (c) 2015 - Jiankun LEI (Raysmond), 2017 - Vyacheslav Boyko (bvn13).