Posts

Showing posts with the label Spring Boot

React, Highcharts and Spring Boot Integration

Image
React, Highcharts and Spring Boot Integration Introduction         If you search for a tutorial online about React, Highcharts and Spring Boot Integration, most of the times you end up with tutorials which are not that that easy to follow. Hence I decided to come up with this blog post to explain the concepts of integrating React, Highcharts and Spring Boot in  simple language which is very easy to follow. This blog post will give you a comprehensive overview of the following: Building a simple React App Integrating the React App with a Spring Boot Application and using CRUD operations Integrating React, Highcharts and Spring Boot Application to view charts React         React is one of the most popular JavaScript libraries for building user interfaces. To know more about React, please check React Website . Highcharts         Highcharts is a software library, written in pure JavaSc...

GraphQL, Spring Boot and MySQL Tutorial

Image
GraphQL, Spring Boot and MySQL Tutorial Introduction         When you search online for a GraphQL and Spring Boot tutorial, most of the times you end up with a tutorial which shows how to setup GraphQL freshly in a new application. Also most of the tutorials give a high level introduction and show operations on static hard-coded data. In this post I would like to show as to how you can add GraphQL functionalities to an existing Spring Boot REST API Application. In this application I am not using static data, instead I am retrieving data from MySQL database. So this tutorial gives a view of both RESTful APIs and GraphQL APIs. GraphQL         GraphQL (Graph Query Language) is basically a query language for APIs and a runtime environment which helps us to query and get results for the data in our application. It is developed by Facebook. The advantages of using GraphQL are: A GraphQL query can be used to get the exact data required inste...

Spring Boot MySQL Integration Tutorial

Image
Spring Boot MySQL Integration Tutorial Introduction         I was searching online for a complete tutorial on Spring Boot integration with MySQL database with all the CRUD operations and I was surprised that I could not find even one. The ones I found had just create and read operations or only view operation. Even the example on the official Spring website:  Accessing data with MySQL , has only create and view database operations. Hence I have come up with this post to give you a comprehensive overview of all the CRUD operations. I have also integrated HikariCP to the Spring Boot application. This will give you an optimized connection pooling. Please feel free to use my application as a base to build your own application. I am assuming that you have a Basic Knowledge of Spring Boot and have a Basic Spring Boot Application running in your machine. If not, please check my blog on Basic Spring Boot Application by going to the link:  Spring Boot Tutori...

Spring Boot REST API Documentation With Swagger

Image
Spring Boot REST API Documentation With Swagger Introduction         In this tutorial, we will be integrating a Spring Boot Application with Swagger API documentation. In this post I will be covering only the basic configuration. Advanced configurations and security configurations are not covered in this post. Swagger API Documentation Swagger takes the manual work out of API documentation, with a range of solutions for generating, visualizing, and maintaining API docs. For more details visit: Swagger Website . Requirements to Run the Application: Java Maven IDE of your choice I am assuming that you have a Basic Knowledge of Spring Boot and have a Basic Spring Boot Application running in your machine. If not, please check my blog on Basic Spring Boot Application by going to the link:  Spring Boot Tutorial Once you have a Basic Spring Boot Application running in your machine, here are the additional steps required to add Swagger API docum...