Coder Social home page Coder Social logo

pateluday07 / elastic-search-demo Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 90 KB

This project is to demonstrate how we can use Elasticsearch with Spring Boot

Java 90.60% Dockerfile 1.85% Shell 7.54%
elasticsearch kibana spring-boot docker docker-compose

elastic-search-demo's Introduction

elastic-search-demo

This project is to demonstrate how we can use Elasticsearch with Spring Boot, as well as we will also dockerize the Spring Boot App, Elasticsearch, and Kibana all together.

Here we have two indexes customer and order, we are storing them in the Elasticsearch and I have developed APIs in the Spring Boot so we can easily manage these indexes in the Elasticsearch, you will get the more information on how to access these APIs in the following section.

Requirements To Run Applications

  • JDK 14
  • Elasticsearch

Dependencies And Tools Used To Build Applications

  • Git
  • JDK 14
  • Spring Boot
  • Elasticsearch
  • Gradle
  • Lombok
  • MapStruct
  • Apache Commons
  • Swagger
  • IDE

Run the application locally

  1. Download the zip or clone the Git repository

  2. Start Elasticsearch

  3. Config Elasticsearch properties from elastic-search-demo/src/main/resources/application-dev.yml if needed.

  4. Go to the elastic-search-demo/ directory and open the terminal and simply run the following command to run the app

    In Windows:

    gradlew bootrun
    

    In Linux:

    bash gradlew bootrun
    

And we are done, now you can open the swagger to access the APIs: Swagger

Docker

In case if you have docker in your machine then just go inside the elastic-search-demo directory and execute the following command:

docker-compose up

And done.

Now you can open the swagger to access the APIs: Swagger

You can access the: Elasticsearch

Even you can try your hands on: Kibana

Thank You :)

elastic-search-demo's People

Contributors

pateluday07 avatar

Watchers

 avatar

Forkers

udpnarola

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.