All Projects → reljicd → Spring Boot Blog

reljicd / Spring Boot Blog

Licence: apache-2.0
Simple blog web app made using Spring Boot + Thymeleaf

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects
bash
514 projects
java8
65 projects

Projects that are alternatives of or similar to Spring Boot Blog

Spring Boot Shopping Cart
Simple shopping cart web app made using Spring Boot + Thymeleaf
Stars: ✭ 85 (-29.75%)
Mutual labels:  bash-script, spring-data-jpa, spring-boot, spring, spring-mvc, spring-security, thymeleaf
Spring Cloud Flycloud
🔥🔥🔥FlyClould 微服务实战项目框架,在该框架中,包括了用 Spring Cloud 构建微服务的一系列基本组件和框架,对于后台服务框架的搭建有很大的参考价值,大家可以参考甚至稍加修改可以直接应用于自己的实际的项目开发中,该项目没有采用Maven进行项目构建,Maven通过xml进行依赖管理,导致整个配置文件太过臃肿,另外灵活性也不是很强,所以我采用Gradle进行项目构建和依赖管理,在FlyTour项目中我们见证了Gradle的强大,通过简单的一些配置就可以轻松的实现组件化的功能。该项目共有11个Module工程。其中10个位微服务工程,这10个微服务工程构成了一个完整的微服务系统,微服务系统包含了8个基础服务,提供了一整套微服务治理功能,他们分别是配置中心module_c…
Stars: ✭ 1,514 (+1151.24%)
Mutual labels:  spring-data-jpa, spring-boot, spring, springboot, spring-mvc, spring-security
Spring Mvc Thymeleaf Crud
Spring MVC CRUD Application with Thymeleaf, HTML5, CSS3 and Bootstrap
Stars: ✭ 14 (-88.43%)
Mutual labels:  spring-data-jpa, spring-boot, spring, spring-mvc, thymeleaf
Spring Boot Examples
about learning Spring Boot via examples. Spring Boot 教程、技术栈示例代码,快速简单上手教程。
Stars: ✭ 26,812 (+22058.68%)
Mutual labels:  spring-data-jpa, spring-boot, spring, springboot, thymeleaf
Securing Rest Api Spring Security
Spring Boot 2.2.x + Spring 5.2.x Rest Api Security Example
Stars: ✭ 117 (-3.31%)
Mutual labels:  spring-boot, spring, springboot, spring-mvc, spring-security
Springboard
Spring Boot based production grade starter kit.
Stars: ✭ 59 (-51.24%)
Mutual labels:  spring-data-jpa, spring-boot, spring, spring-mvc, spring-security
Spring-Boot-2
Spring Boot 2.x examples
Stars: ✭ 33 (-72.73%)
Mutual labels:  thymeleaf, spring-security, springboot, spring-mvc, spring-data-jpa
Favorites Web
云收藏 Spring Boot 2.X 开源项目
Stars: ✭ 4,485 (+3606.61%)
Mutual labels:  spring-data-jpa, spring-boot, spring, springboot, thymeleaf
Spring Boot Enterprise Application Development
Spring Boot Enterprise Application Development.《Spring Boot 企业级应用开发实战》
Stars: ✭ 261 (+115.7%)
Mutual labels:  spring-data-jpa, spring-boot, spring-mvc, spring-security, thymeleaf
BusinessInfrastructurePlatformGroupVersion
A java web project based on Spring Boot using MySQL, Spring MVC, Hibernate, Spring Data JPA, Query DSL, Lombok, Logback, etc.
Stars: ✭ 90 (-25.62%)
Mutual labels:  thymeleaf, spring-security, springboot, spring-mvc, spring-data-jpa
Springboot Starterkit
Starter Kit for Spring Boot based (REST APIs and WebMVC) micro services.
Stars: ✭ 596 (+392.56%)
Mutual labels:  spring-data-jpa, spring-boot, spring, spring-mvc, spring-security
Eshop Soa
EShop基于Dubbo实现SOA服务化拆分,并基于RocketMQ解决了分布式事务(新版SpringBootSOASkeleton)
Stars: ✭ 65 (-46.28%)
Mutual labels:  spring-boot, spring, spring-mvc, spring-security, thymeleaf
Javaquarkbbs
基于Spring Boot实现的一个简易的Java社区
Stars: ✭ 755 (+523.97%)
Mutual labels:  spring-boot, spring, spring-mvc, thymeleaf
Spring Cloud Microservices Development
Spring Cloud Microservices Development.《Spring Cloud 微服务架构开发实战》
Stars: ✭ 106 (-12.4%)
Mutual labels:  spring-boot, spring, spring-mvc, thymeleaf
Mini Spring
mini-spring是简化版的spring框架,能帮助你快速熟悉spring源码和掌握spring的核心原理。抽取了spring的核心逻辑,代码极度简化,保留spring的核心功能,如IoC和AOP、资源加载器、事件监听器、类型转换、容器扩展点、bean生命周期和作用域、应用上下文等核心功能。
Stars: ✭ 698 (+476.86%)
Mutual labels:  spring-boot, spring, springboot, spring-mvc
Mall
mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现,采用Docker容器化部署。 前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。
Stars: ✭ 54,797 (+45186.78%)
Mutual labels:  spring-boot, spring, springboot, spring-security
Spring Mvc Tutorial
Spring MVC 5 Tutorial - Guide to spring mvc framework
Stars: ✭ 121 (+0%)
Mutual labels:  spring-data-jpa, spring, spring-mvc, spring-security
Springbootunity
rabbitmq、redis、scheduled、socket、mongodb、Swagger2、spring data jpa、Thymeleaf、freemarker etc. (muti module spring boot project) (with spring boot framework,different bussiness scence with different technology。)
Stars: ✭ 845 (+598.35%)
Mutual labels:  spring-boot, spring, spring-mvc, thymeleaf
Market
Simple web-market: Spring, JSP, REST, Hibernate (under modernization)
Stars: ✭ 47 (-61.16%)
Mutual labels:  spring-data-jpa, spring-boot, spring-mvc, spring-security
Curso Sistemas Web Com Spring Javascript Bootstrap
Stars: ✭ 74 (-38.84%)
Mutual labels:  spring-boot, spring, spring-mvc, thymeleaf

Spring Boot Blog Demo

About

This is a demo project for practicing Spring Boot + Thymeleaf. The idea was to build some basic blogging platform.

It was made using Spring Boot, Spring Security, Thymeleaf, Spring Data JPA, Spring Data REST and Docker. Database is in memory H2.

There is a login and registration functionality included.

User has his own blog page, where he can add new blog posts. Every authenticated user can comment on posts made by other users. Home page is paginated list of all posts. Non-authenticated users can see all blog posts, but cannot add new posts or comment.

Screenshot 1

Screenshot 1

Configuration

Configuration Files

Folder src/resources/ contains config files for blog-demo Spring Boot application.

  • src/resources/application.properties - main configuration file. Here it is possible to change admin username/password, as well as change the port number.

How to run

There are several ways to run the application. You can run it from the command line with included Maven Wrapper, Maven or Docker.

Once the app starts, go to the web browser and visit http://localhost:8090/home

Admin username: admin

Admin password: admin

User username: user

User password: password

Maven Wrapper

Using the Maven Plugin

Go to the root folder of the application and type:

$ chmod +x scripts/mvnw
$ scripts/mvnw spring-boot:run

Using Executable Jar

Or you can build the JAR file with

$ scripts/mvnw clean package

Then you can run the JAR file:

$ java -jar target/blog-demo-0.0.1-SNAPSHOT.jar

Maven

Open a terminal and run the following commands to ensure that you have valid versions of Java and Maven installed:

$ java -version
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
$ mvn -v
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T16:41:47+00:00)
Maven home: /usr/local/Cellar/maven/3.3.9/libexec
Java version: 1.8.0_102, vendor: Oracle Corporation

Using the Maven Plugin

The Spring Boot Maven plugin includes a run goal that can be used to quickly compile and run your application. Applications run in an exploded form, as they do in your IDE. The following example shows a typical Maven command to run a Spring Boot application:

$ mvn spring-boot:run

Using Executable Jar

To create an executable jar run:

$ mvn clean package

To run that application, use the java -jar command, as follows:

$ java -jar target/blog-demo-0.0.1-SNAPSHOT.jar

To exit the application, press ctrl-c.

Docker

It is possible to run blog-demo using Docker:

Build Docker image:

$ mvn clean package
$ docker build -t blog-demo:dev -f docker/Dockerfile .

Run Docker container:

$ docker run --rm -i -p 8090:8090 \
      --name blog-demo \
      blog-demo:dev
Helper script

It is possible to run all of the above with helper script:

$ chmod +x scripts/run_docker.sh
$ scripts/run_docker.sh

Docker

Folder docker contains:

  • docker/blog-demo/Dockerfile - Docker build file for executing blog-demo Docker image. Instructions to build artifacts, copy build artifacts to docker image and then run app on proper port with proper configuration file.

Util Scripts

  • scripts/run_docker.sh.sh - util script for running blog-demo Docker container using docker/Dockerfile

Tests

Tests can be run by executing following command from the root of the project:

$ mvn test

Helper Tools

HAL REST Browser

Go to the web browser and visit http://localhost:8090/

You will need to be authenticated to be able to see this page.

H2 Database web interface

Go to the web browser and visit http://localhost:8090/h2-console

In field JDBC URL put

jdbc:h2:mem:blog_simple_db

In /src/main/resources/application.properties file it is possible to change both web interface url path, as well as the datasource url.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].