Giter Site home page Giter Site logo

boudhayan-dev / spring-hana-cloud-foundry Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 11.0 11 KB

Spring boot application to consume HANA service on SAP CP

Home Page: https://blogs.sap.com/2019/07/22/develop-a-spring-boot-java-application-with-hana-database-on-sap-cloud-platform-cloud-foundry-part-1/

Java 100.00%
java spring-boot hana sap sap-hana sap-hana-database sap-cloud-platform cloud-foundry cloud-native cloud-native-applications

spring-hana-cloud-foundry's Introduction

Spring-Hana-Cloud-Foundry

This is a sample spring boot application that makes use of SAP HANA Service on SAP Cloud Platform (Cloud Foundry). The accompanying blog series talks about the configuration needed on the SCP side.

Requirements

Installation

  • Clone repo -

    git clone https://github.com/boudhayan-dev/spring-hana-cloud-foundry
    
  • For local -

    mvn clean install -P local
    
    • Run the app -
    java -jar target/spring-hana-cloud-foundry-0.0.1-SNAPSHOT.war
    
  • For Cloud Foundry -

    mvn clean install -P cf
    
    • Deploy the app -
    cf push
    

Test

To test the application, use the following routes -

METHOD ROUTE DESCRIPTION
GET /employee/count Count of total employees
GET /employee/all Returns all employees
GET /employee/id/{id} Returns employee with id
POST /employee/add Add new employee
DELETE /employee/delete/{id} Delete employee with id

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.