/spring-boot-highcharts

Tons of examples on Highcharts library with Spring boot and Mysql. Learn more at https://bushansirgur.in/web-technologies/spring-boot-and-highcharts/

Primary LanguageJava

Spring boot, MySQL and Highcharts

Bunch of examples on Spring boot and Highcharts

Requirements

  1. Java - 1.8.x

  2. Maven - 3.x.x

  3. Mysql - 5.x.x

  4. Highcharts library - latest

  5. jQuery library - latest

Steps to Setup

1. Clone the application

git clone https://github.com/scbushan05/spring-boot-highcharts.git

2. Create Mysql database

create database analytics

3. Run the script file

Run the script file queries.sql attached to the project

4. Change mysql username and password as per your installation

  • open src/main/resources/application.properties

  • change spring.datasource.username and spring.datasource.password as per your mysql installation

5. Build and run the app using maven

mvn package
java -jar target/highcharts-0.0.1-SNAPSHOT.jar

Alternatively, you can run the app without packaging it using -

mvn spring-boot:run

The app will start running at http://localhost:8080.

Explore Rest APIs

The app defines following Highcharts

  1. Line chart

  2. Multiple line chart

  3. Pie chart

Learn more

You can find the tutorial for this application on my blog -

https://bushansirgur.in/web-technologies/spring-boot-and-highcharts/