Giter Club home page Giter Club logo

spring-boot-angular2's Introduction

Spring Boot - Microservices - Netflix Eureka Server and client, Swagger, ZuulProxy

  • Started this project as learning resource for Spring Boot. Integrated Spring Boot with Angular 2 SPA.
  • Started exploring Service Discovery - Netflix Eureka Server and Eureka Clients
  • Started exploring API Edge Gateway - Zuul Proxy
  • Started exploring API documentation - Swagger 2

Learning objectives : Achieved -

  • Angular 2
  • Spring Boot
  • Spring boot integrated with Angular2
  • Microservices API that do not go down with Eureka Server and client
  • Zuul Proxy, Ribbon
  • Swagger

Learning Objectives Pending -

  • Open API
  • Loopback with NodeJs
  • Distributed Caching - Redis and Memacache
  • Contanerized Micro services

Basic Architecture Diagram


Child Web Project has a dependency on the Client Project and by default opens it index.html.

It uses https://github.com/eirslett/frontend-maven-plugin to download Node,NPM,install , and run the front end build lifecycle.

Uses In memory DB for Data persistence. Has the complete Heroes App , official starter tutorial for Angular2 implemented.


Packaging --- mvn clean package

Start individual applications -

Starting the Eureka Server java -jar serviceRegistration/target/serviceRegistration-0.0.1-SNAPSHOT.war

Eureka Endpoint - http://localhost:1111/

Start the individual micro applications

java -jar challengesWeb/target/challengesWeb-0.0.1-SNAPSHOT.war

http://localhost:2222/

Start the same application in the same JVM different port Example - ava -jar target/app.jar --server.port=3331

Basically to override any spring boot properties use -- followed by Spring boot property name seprate with .

java -jar challengesWeb/target/challengesWeb-0.0.1-SNAPSHOT.war --server.port=3331

Your Microservice should be up at http://localhost:3331/api/challenges

Starting the Heroes Application

java -jar heroWeb/target/heroesWeb-0.0.1-SNAPSHOT.war

Your other microservice should be up at http://localhost:2222/heroes

Replicated Heroes Micro Application

java -jar heroWeb/target/heroesWeb-0.0.1-SNAPSHOT.war --server.port=2223

Replicate Microservice should be up at http://localhost:2223/heroes

Starting the zuul Proxy

java -jar zuulGateway/target/zuulGateway-0.0.1-SNAPSHOT.jar

Deployed at port 5555

You should be able to access your API using the Zuul gateway

Heroes API via proxy - [Secure end point- basic security , User Name - user. Password - password ] http://localhost:5555/heroes-service/heroes

Challenges API via proxy - http://localhost:5555/challenges-service/api/challenges

Swagger Documentation- http://localhost:2222/swagger-ui.html#/

http://localhost:3333/swagger-ui.html#/

spring-boot-angular2's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.