Giter Club home page Giter Club logo

springboot-postgresql's Introduction

Overview

In this project, We will show how Spring boot and spring data jpa can be used to integrate with postgresql.

Step 1 Download the code from github

git clone https://github.com/RajeshBhojwani/springboot-postgresql.git

Step 2 Build the project

gradlew clean build

Step 3 Launch the application

java -jar java -jar build/libs/springposgres-0.0.1-SNAPSHOT.jar

Step 4 Use Curl or Postman to test the REST apis created.

APIs for Postgresql usage

  1. Bulk upload of the customers using below api. No need to pass any data.

http://localhost:9090/bulkcreate

  1. POST call to insert one customer based on the JSON data passed.

http://localhost:9090/create

JSON data

{
	"firstName": "Sumit",
	"lastName": "Khan"
}
  1. GET call to retrive all customers.

http://localhost:9090/findall

  1. GET call to search customer by id. http://localhost:9090/search/{id}

  2. GET call to search customer by first name. http://localhost:9090/searchbyfirstname/{firstname}

For detail explanation of this project check this blog -https://www.rajeshbhojwani.co.in/2019/01/spring-boot-and-postgresql.html

springboot-postgresql's People

Contributors

rajeshbhojwani avatar

Watchers

James Cloos avatar  avatar

Forkers

wniedzwiedz

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.