Spring MVC backend written in Java for my wiki/blog

Related tags

Spring Boot blog-api
Overview

blog-api

Spring MVC backend written in Java for my wiki/blog.

Why Spring?

Spring MVC and other parts of the Spring framework are still immensely popular despite its age. Sure, there are plenty of newer offerings. It would have been trivial making a Node.JS, Python Flask or Elixir API. Yet, Spring is still widely used by even the most up-to-date tech companies (See: FAANG).

However, when I pick up a new API framework in the future, then I will likely rewrite this one.

Tech Stack

  • Spring MVC API
  • Tomcat Web Server
  • Microsoft SQL Server 2017
  • Redgate Flyway for database migration

Development

If you would like to contribute, or use this as a template:

1. Clone the repo:

$ git clone https://github.com/J-Curragh/blog-api.git --branch=main --depth=1

2. Create application properties file:

# cd into project root
cd blog-api
# create application.properties
touch src/main/resources/application.properties
# resources/application.properties
---
spring.application.name = blog-api

spring.flyway.enabled = true
spring.flyway.user = 
spring.flyway.password = 
spring.flyway.baseline-on-migrate=true

spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLServer2012Dialect
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.show-sql=true
spring.datasource.url=jdbc:sqlserver://
   :
   
    ;database=
     

    spring.datasource.username=

    spring.datasource.password=

    spring.datasource.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver

   
  

Note: It is generally recommended that you set-up a privileged login for Flyway, and an unprivileged login for Spring. See below as an example.

TODOs

  • Include example of hardened Database permissions in README
  • Finish basic API
  • Implement Basic Authentication with tiered roles.
You might also like...

A blog recipes API for you to share and search for food recipes

A blog recipes API for you to share and search for food recipes

Apr 15, 2022

A personal blog based on Vue+SpringBoot+MySql+Redis+Shiro+JWT

A personal blog based on Vue+SpringBoot+MySql+Redis+Shiro+JWT

项目:Vue-SpringBoot-PersonalBlog 个人博客网址:http://www.huchao.vip/blogs CSDN:毛_三月 介绍 一个基于SpringBoot + Vue+MybatisPlus+Shiro+JWT+Redis开发的前后端分离博客项目,带有超级详细开发文档

Dec 20, 2022

Spring Boot microservices app with Spring Cloud, Robust and resilient backend managing e-Commerce app

Spring Boot microservices app with Spring Cloud, Robust and resilient backend managing e-Commerce app

e-Commerce-boot μServices Important Note: This project's new milestone is to move The whole system to work on Kubernetes, so stay tuned. Introduction

Dec 23, 2022

Model Layer Implementation for a J2EE Pull MVC WebApp

Model Layer Implementation for a J2EE Pull MVC WebApp

Modality is a lightweight but hightly configurable Java ORM, with a companion set of tools docs home modality-core doc modality-webapp doc velocity-to

Jan 3, 2023

Human Resource Management Application on JavaFX using MVC Design Pattern

Human Resource Management Application on JavaFX using MVC Design Pattern

Human-Resource-Management-System-with-JFoenix Human Resource Management Application on JavaFX using MVC Design Pattern Built With Java JavaFX - FXML C

Mar 18, 2022

This project archetype is a template for creating a fully functional MVC web application using Hibernate, JSTL and Bootstrap

This project archetype is a template for creating a fully functional MVC web application using Hibernate, JSTL and Bootstrap

This project archetype is a template for creating a fully functional MVC web application using Hibernate, JSTL and Bootstrap. It has an automatic database creation, auto initial load of the data, with different variety of users. It also has a checkstyle to check the proper coding of your project immediately right after you enter the code.

Oct 21, 2022

该仓库中主要是 Spring Boot 的入门学习教程以及一些常用的 Spring Boot 实战项目教程,包括 Spring Boot 使用的各种示例代码,同时也包括一些实战项目的项目源码和效果展示,实战项目包括基本的 web 开发以及目前大家普遍使用的线上博客项目/企业大型商城系统/前后端分离实践项目等,摆脱各种 hello world 入门案例的束缚,真正的掌握 Spring Boot 开发。

该仓库中主要是 Spring Boot 的入门学习教程以及一些常用的 Spring Boot 实战项目教程,包括 Spring Boot 使用的各种示例代码,同时也包括一些实战项目的项目源码和效果展示,实战项目包括基本的 web 开发以及目前大家普遍使用的线上博客项目/企业大型商城系统/前后端分离实践项目等,摆脱各种 hello world 入门案例的束缚,真正的掌握 Spring Boot 开发。

Spring Boot Projects 该仓库中主要是 Spring Boot 的入门学习教程以及一些常用的 Spring Boot 实战项目教程,包括 Spring Boot 使用的各种示例代码,同时也包括一些实战项目的项目源码和效果展示,实战项目包括基本的 web 开发以及目前大家普遍使用的前

Dec 30, 2022

İnnova-Patika Java Spring Bootcamp - Bitirme Projesi - Backend

İnnova-Patika Java Spring Bootcamp - > Bitirme Projesi -> Backend

İnnova-Patika Java Spring Bootcamp - Bitirme Projesi - Backend

May 1, 2022

Bersama Java Spring membangun negeri (Backend)

Hal - hal yang ada pada Java Spring Application Context Menggunakan IoC (Inversion of Control) / Container. Singleton : Object yang hanya dibuat 1 kal

Jul 11, 2022
Owner
Teach yourself programming in 10 years.
null
Spring Boot JdbcTemplate example with SQL Server: CRUD Rest API using Spring Data JDBC, Spring Web MVC

Spring Boot JdbcTemplate example with SQL Server: Build CRUD Rest API Build a Spring Boot CRUD Rest API example that uses Spring Data Jdbc to make CRU

null 7 Dec 20, 2022
Repository with Backend code for InnoTutor project. It is written on Java/Spring.

Backend ᅠ ᅠ Developers: Daniil Livitn, Roman Soldatov Contents Requirements API Database Google credentials Hosting and CI How to install locally Code

InnoTutor 20 Sep 17, 2022
A simple blog post api made with spring,mysql.Following tutorial by @FadatareRamesh(Java Guides)

blogAPI A simple blog post api made with spring,mysql.Following tutorial by @FadatareRamesh(Java Guides) Frontend server(made using Angular) can be fo

null 1 Feb 2, 2022
循序渐进,学习Spring Boot、Spring Boot & Shiro、Spring Batch、Spring Cloud、Spring Cloud Alibaba、Spring Security & Spring Security OAuth2,博客Spring系列源码:https://mrbird.cc

Spring 系列教程 该仓库为个人博客https://mrbird.cc中Spring系列源码,包含Spring Boot、Spring Boot & Shiro、Spring Cloud,Spring Boot & Spring Security & Spring Security OAuth2

mrbird 24.8k Jan 6, 2023
Projeto Base - Spring Security - Blog Pessoal

Implementando a Camada de Segurança com o Spring Security no Blog Pessoal Nesta atividade iremos implementar a camada de segurança da aplicação com o

Rafael Queiróz 10 Aug 9, 2021
Spring MVC,Data,Rest

Tekonolojiler Java 11 Spring Boot DevTools Lombok Spring Configuration Processor Spring Web Thymeleaf Spring Data JPA H2 Database MySQL Driver Validat

Java Full Stack Developer Hamit Mızrak 11 Mar 24, 2022
This module explains about the example of Spring MVC + Database Integration with MySQL using Hibernate ORM with practical coding example and required JAR dependencies

SpringMVC-Database-Integration This module explains about the example of Spring MVC + Database Integration with MySQL using Hibernate ORM with practic

GowthamRaj K 3 Nov 2, 2021
Java based open source static site/blog generator for developers & designers.

JBake JBake is a Java based open source static site/blog generator for developers. Documentation Full documentation is available on jbake.org. Contrib

JBake 1k Dec 30, 2022
🦄 Best beautiful java blog, worth a try

Tale Blog Tale's English meaning for the Story, I believe that every person who insists on writing a blog is a story; Chinese you call it Collapse doe

Tale Blog System 4.8k Dec 30, 2022
Escrevendo Testes para o Blog Pessoal

Implementando testes com o Spring Testing no Blog Pessoal Nesta atividade iremos implementar os testes nas Camadas Model, Repository e Controller da C

Rafael Queiróz 13 Dec 12, 2022