Git Product home page Git Product logo

beginners-guide-to-spring-cloud's Introduction

Beginner's Guide To Spring Cloud

This is the repository for the Beginner's Guide to Spring Cloud talk. You can find the slides here.

Using This Repo

There are four importand directories in this repository.

  1. beginners-guide-to-spring-cloud-config - This directory contains the configuration used by the Spring Cloud Config Server.
  2. start - This directory contains basic Boot apps that are modified to use Spring Cloud
  3. complete - This directory contains the finalized Boot apps that use Spring Cloud
  4. config - This is configuration from Eureka, Config Server, and Zipkin used by the Spring Cloud CLI

Prereqs

Before you run the applications in this repository you should install the Spring Cloud CLI.

About The Apps

There are three apps in the start and four apps in the complete directories.

Name App

The name app will return the value of the name property when making an HTTP GET request to /.

Greeting App

The greetingapp returns a greeting. You can make a GET request to / and it will return Hello. You can also make an HTTP GET and pass a language code to return a greeting for that language. For example a GET to /es would return Hola.

Web App

The web app makes a request to both the greeting and name app to construct the proper greeting when you make a GET to /. By changing the Accept-Language header you can change the language of the greeting returned. For example if you set the Accept-Language header to de the greeting returned will be Hallo Ryan.

Gateway Web App

This app has the same functionality as the web app but leverages the new Spring Cloud Gateway project and uses Spring Boot 2.0.0. It is only present in the complete directory.

Running The Apps

From the root of the repo run

$ spring cloud eureka configserver zipkin

This will start a Eureka Server, Config Server, and Zipkin.

Then from the complete directory you can run each of the apps.

NOTE: You do not need to run the Eureka Server, Config Server, and Zipkin when running the app from the start directory because they do not use Spring Cloud.

beginners-guide-to-spring-cloud'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.