Coder Social home page Coder Social logo

chandrayakkali / hello-spring-cloud Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudfoundry-samples/hello-spring-cloud

0.0 1.0 0.0 452 KB

Spring Cloud Connectors sample application.

Home Page: http://cloud.spring.io/spring-cloud-connectors/

License: Apache License 2.0

Java 70.01% HTML 29.99%

hello-spring-cloud's Introduction

Hello Spring Cloud Connectors

A Spring Boot application that uses Spring Cloud Connectors to connect to cloud services and get information about cloud environment.

Building the application

Use Maven to build the application:

$ mvn clean package

Running the application on Cloud Foundry

To run the application on Cloud Foundry, first target and long into a Cloud Foundry environment, then run this command:

$ cf push

The application will be deployed using settings in the provided manifest.yml file. The output from the command will show the URL that has been assigned to the application. Browse to the provided URL to view information about the application.

Creating and binding services

Using the provided manifest, the application will not be bound to any data services. The application UI will show default connections provided by Spring Boot. You can create relational database, Redis, MongoDB, and AMQP services and bind them to the application to test creation of service connections with Spring Cloud Connectors.

On Pivotal Web Services you can create and bind each type of service using these commands:

$ cf create-service cleardb spark mysql-service
$ cf bind-service hello-spring-cloud mysql-service

$ cf create-service rediscloud 30mb redis-service
$ cf bind-service hello-spring-cloud redis-service

$ cf create-service mlab sandbox mongodb-service
$ cf bind-service hello-spring-cloud mongodb-service

$ cf create-service cloudamqp spark amqp-service
$ cf bind-service hello-spring-cloud amqp-service

$ cf restart

On Pivotal Cloud Foundry you can create and bind each type of service using these commands:

$ cf create-service p-mysql 100mb mysql-service
$ cf bind-service hello-spring-cloud mysql-service

$ cf create-service p-redis shared-vm redis-service
$ cf bind-service hello-spring-cloud redis-service

$ cf create-service p-rabbitmq standard amqp-service
$ cf bind-service hello-spring-cloud amqp-service

$ cf restart

Consult the Pivotal Cloud Foundry documentation for more details.

hello-spring-cloud's People

Contributors

scottfrederick avatar ramnivas avatar cdelashmutt-pivotal avatar tsuyo avatar

Watchers

James Cloos 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.