GithubHelp home page GithubHelp logo

rapter1990 / jpastreamer Goto Github PK

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

Spring Boot with the usage of JpaStreamer

Java 98.69% Dockerfile 1.31%
java jpastreamer maven spring-boot docker docker-compose dockerfile h2-database integration-testing javafaker

jpastreamer's Introduction

Spring Boot JpaStreamer Example

Main Information

๐Ÿ“– Information

  • The purpose of the example is to handle with writing queries with the usage of JPASteamer library
  • Here is the explanation of the example
    • Load initial data about Person into h2 database through JavaFaker library
    • Get person list or person object from the database with the usage of JPASteamer through collect, filter, range, equal, less than, starts with, between and so on

Explore Rest APIs

Method Url Description Valid Path Variable No Path Variable
GET /persons/jpastreamer/all Get All Person List Info
GET /persons/jpastreamer/{id} Get Person By Id Info
GET /persons/jpastreamer/findByFirstCharacterOfFirstName/{character} Get Person List By First Character of Firstname Info
GET /persons/jpastreamer/findByAge/{age} Get Person List By Age Info
GET /persons/jpastreamer/findByLessThanAge/{age} Get Person List By Age Less Than Info
GET /persons/jpastreamer/findByFirstCharacterOfFirstNameAndAge/{character}/{age} Get Person List By First Character of Firstname and Age Info
GET /persons/jpastreamer/findByAgeRange/{age1}/{age2} Get Person List By Age Range Info
GET /persons/jpastreamer/findMaximumAge Get Person By Maximum Age Info
GET /persons/jpastreamer/findMinimumAge Get Person By Minimum Age Info
GET /persons/jpastreamer/findByBirthdayRange/{startDate}/{endDate} Get Person List By Birthday Range Info

Valid Path Variable

Get All Person List
    http://localhost:8080/persons/jpastreamer/all
Get Person By Id
    http://localhost:8080/persons/jpastreamer/1
Get Person List By First Character of Firstname
    http://localhost:8080/persons/jpastreamer/findByFirstCharacterOfFirstName/K
Get Person List By Age
    http://localhost:8080/persons/jpastreamer/findByAge/35
Get Person List By Age Less Than
    http://localhost:8080/persons/jpastreamer/findByLessThanAge/60
Get Person List By First Character of Firstname and Age
    http://localhost:8080/persons/jpastreamer/findByFirstCharacterOfFirstNameAndAge/J/45
Get Person List By Age Range
    http://localhost:8080/persons/jpastreamer/findByAgeRange/10/60
Get Person List By Birthday Range
    http://localhost:8080/persons/jpastreamer/findByBirthdayRange/1990-01-01/2023-07-13

No Path Variable

Get Person By Maximum Age
    http://localhost:8080/persons/jpastreamer/findMaximumAge
Get Person By Minimum Age
    http://localhost:8080/persons/jpastreamer/findMinimumAge

Technologies


  • Java 17
  • Spring Boot 3.0
  • Restful API
  • Lombok
  • Maven
  • Junit5
  • Mockito
  • Integration Tests
  • Docker
  • Docker Compose
  • JpaSteamer
  • JavaFaker

Prerequisites


  • Maven or Docker

Docker Run

The application can be built and run by the Docker engine. The Dockerfile has multistage build, so you do not need to build and run separately.

Please follow directions shown below in order to build and run the application with Docker Compose file;

$ cd jpastreamer
$ docker-compose up -d

If you change anything in the project and run it on Docker, you can also use this command shown below

$ cd jpastreamer
$ docker-compose up --build

Maven Run

To build and run the application with Maven, please follow the directions shown below;

$ cd jpastreamer
$ mvn clean install
$ mvn spring-boot:run

Screenshots

Click here to show the screenshots of project

Figure 1

Figure 2

Figure 3

Figure 4

jpastreamer's People

Watchers

 avatar

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.