├── .classpath
├── .gitignore
├── .project
├── README.md
├── challengesWeb
├── .classpath
├── .project
├── .springBeans
├── pom.xml
└── src
│ └── main
│ ├── java
│ └── com
│ │ └── hitesh
│ │ └── boot
│ │ └── challenges
│ │ ├── ChallengesApplication.java
│ │ ├── controller
│ │ └── ChallengesController.java
│ │ ├── entity
│ │ └── Challenges.java
│ │ ├── repositories
│ │ └── ChallengesRepository.java
│ │ └── swagger
│ │ └── SwaggerConfig.java
│ └── resources
│ ├── bootstrap.yml
│ ├── challenges-server.yml
│ ├── data.sql
│ └── schema.sql
├── heroClient
├── .angular-cli.json
├── .classpath
├── .editorconfig
├── .project
├── .vscode
│ └── launch.json
├── README.md
├── e2e
│ ├── app.e2e-spec.ts
│ ├── app.po.ts
│ └── tsconfig.e2e.json
├── karma.conf.js
├── package.json
├── pom.xml
├── protractor.conf.js
├── src
│ ├── app
│ │ ├── app-routing
│ │ │ └── app-routing.module.ts
│ │ ├── app.component.css
│ │ ├── app.component.html
│ │ ├── app.component.spec.ts
│ │ ├── app.component.ts
│ │ ├── app.module.ts
│ │ ├── auth.guard.spec.ts
│ │ ├── auth.guard.ts
│ │ ├── dashboard
│ │ │ ├── dashboard.component.css
│ │ │ ├── dashboard.component.html
│ │ │ ├── dashboard.component.spec.ts
│ │ │ └── dashboard.component.ts
│ │ ├── hero-detail
│ │ │ ├── hero-detail.component.css
│ │ │ ├── hero-detail.component.html
│ │ │ ├── hero-detail.component.spec.ts
│ │ │ └── hero-detail.component.ts
│ │ ├── heroes
│ │ │ ├── heroes.component.css
│ │ │ ├── heroes.component.html
│ │ │ ├── heroes.component.spec.ts
│ │ │ └── heroes.component.ts
│ │ ├── models
│ │ │ ├── hero.ts
│ │ │ └── tweet.ts
│ │ ├── services
│ │ │ ├── auth.service.spec.ts
│ │ │ ├── auth.service.ts
│ │ │ ├── hero.service.ts
│ │ │ ├── tweet.service.spec.ts
│ │ │ └── tweet.service.ts
│ │ ├── signup
│ │ │ ├── signup.component.css
│ │ │ ├── signup.component.html
│ │ │ ├── signup.component.spec.ts
│ │ │ └── signup.component.ts
│ │ ├── udemy
│ │ │ ├── authors
│ │ │ │ ├── authors.component.css
│ │ │ │ ├── authors.component.html
│ │ │ │ ├── authors.component.spec.ts
│ │ │ │ └── authors.component.ts
│ │ │ ├── auto-grow.directive.spec.ts
│ │ │ ├── auto-grow.directive.ts
│ │ │ ├── change-password
│ │ │ │ ├── change-password.component.css
│ │ │ │ ├── change-password.component.html
│ │ │ │ ├── change-password.component.spec.ts
│ │ │ │ └── change-password.component.ts
│ │ │ ├── contact-form
│ │ │ │ ├── contact-form.component.css
│ │ │ │ ├── contact-form.component.html
│ │ │ │ ├── contact-form.component.spec.ts
│ │ │ │ └── contact-form.component.ts
│ │ │ ├── courses
│ │ │ │ ├── courses.component.css
│ │ │ │ ├── courses.component.html
│ │ │ │ ├── courses.component.spec.ts
│ │ │ │ └── courses.component.ts
│ │ │ ├── github-profile
│ │ │ │ ├── github-profile.component.css
│ │ │ │ ├── github-profile.component.html
│ │ │ │ ├── github-profile.component.spec.ts
│ │ │ │ └── github-profile.component.ts
│ │ │ ├── models
│ │ │ │ ├── author.ts
│ │ │ │ ├── course.ts
│ │ │ │ └── githubprofile.ts
│ │ │ ├── services
│ │ │ │ ├── auth.service.spec.ts
│ │ │ │ ├── auth.service.ts
│ │ │ │ ├── author.service.ts
│ │ │ │ ├── course.service.ts
│ │ │ │ ├── github.service.spec.ts
│ │ │ │ ├── github.service.ts
│ │ │ │ ├── prevent-unsaved-changes.guard.spec.ts
│ │ │ │ ├── prevent-unsaved-changes.guard.ts
│ │ │ │ ├── spotify.service.spec.ts
│ │ │ │ └── spotify.service.ts
│ │ │ ├── spotify
│ │ │ │ ├── spotify.component.css
│ │ │ │ ├── spotify.component.html
│ │ │ │ ├── spotify.component.spec.ts
│ │ │ │ └── spotify.component.ts
│ │ │ ├── udemy.module.ts
│ │ │ └── udemy.routing.ts
│ │ ├── util
│ │ │ ├── bs-panels
│ │ │ │ ├── bs-panels.component.css
│ │ │ │ ├── bs-panels.component.html
│ │ │ │ └── bs-panels.component.ts
│ │ │ ├── favorite
│ │ │ │ ├── favorite.component.css
│ │ │ │ ├── favorite.component.html
│ │ │ │ ├── favorite.component.spec.ts
│ │ │ │ └── favorite.component.ts
│ │ │ ├── heart
│ │ │ │ ├── heart.component.css
│ │ │ │ ├── heart.component.html
│ │ │ │ ├── heart.component.spec.ts
│ │ │ │ └── heart.component.ts
│ │ │ ├── summarize.pipe.spec.ts
│ │ │ ├── summarize.pipe.ts
│ │ │ ├── tweets
│ │ │ │ ├── tweets.component.css
│ │ │ │ ├── tweets.component.html
│ │ │ │ ├── tweets.component.spec.ts
│ │ │ │ └── tweets.component.ts
│ │ │ ├── util.module.ts
│ │ │ ├── vote
│ │ │ │ ├── vote.component.css
│ │ │ │ ├── vote.component.html
│ │ │ │ ├── vote.component.spec.ts
│ │ │ │ └── vote.component.ts
│ │ │ └── zippy
│ │ │ │ ├── zippy.component.css
│ │ │ │ ├── zippy.component.html
│ │ │ │ ├── zippy.component.spec.ts
│ │ │ │ └── zippy.component.ts
│ │ └── validators
│ │ │ ├── PasswordValidator.ts
│ │ │ └── UserNameValidator.ts
│ ├── assets
│ │ └── .gitkeep
│ ├── environments
│ │ ├── environment.prod.ts
│ │ └── environment.ts
│ ├── favicon.ico
│ ├── index.html
│ ├── main.ts
│ ├── polyfills.ts
│ ├── styles.css
│ ├── test.ts
│ ├── tsconfig.app.json
│ ├── tsconfig.spec.json
│ └── typings.d.ts
├── tsconfig.json
└── tslint.json
├── heroWeb
├── .gitignore
├── mvnw
├── mvnw.cmd
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── hitesh
│ │ │ └── boot
│ │ │ └── heroes
│ │ │ ├── HeroesApplication.java
│ │ │ ├── data
│ │ │ ├── entity
│ │ │ │ ├── Challenge.java
│ │ │ │ ├── Guest.java
│ │ │ │ ├── Hero.java
│ │ │ │ ├── Reservation.java
│ │ │ │ └── Room.java
│ │ │ └── repository
│ │ │ │ ├── GuestRepository.java
│ │ │ │ ├── HeroRepository.java
│ │ │ │ ├── ReservationRepository.java
│ │ │ │ └── RoomRepository.java
│ │ │ ├── facade
│ │ │ └── IAuthenticationFacade.java
│ │ │ ├── security
│ │ │ ├── AppInfoContributor.java
│ │ │ ├── AuthenticationFacade.java
│ │ │ └── SecurityConfiguration.java
│ │ │ ├── service
│ │ │ ├── HeroChallengeService.java
│ │ │ └── ReservationService.java
│ │ │ ├── swagger
│ │ │ └── SwaggerConfig.java
│ │ │ └── webservice
│ │ │ ├── AuthController.java
│ │ │ ├── DownloadPDFController.java
│ │ │ ├── HeroController.java
│ │ │ └── RoomController.java
│ └── resources
│ │ ├── bootstrap.yml
│ │ ├── data.sql
│ │ ├── heroes-server.yml
│ │ ├── schema.sql
│ │ ├── static
│ │ ├── hello_world_app.component.ts
│ │ ├── hello_world_main.ts
│ │ └── index.html
│ │ └── test.pdf
│ └── test
│ └── java
│ └── com
│ └── hitesh
│ └── boot
│ └── reservations
│ └── ReservationsApplicationTests.java
├── pom.xml
├── serviceRegistration
├── .classpath
├── .project
├── pom.xml
└── src
│ └── main
│ ├── java
│ └── serviceRegistration
│ │ └── RegistrationServer.java
│ └── resources
│ └── registration-server.yml
└── zuulGateway
├── pom.xml
└── src
└── main
├── java
└── com
│ └── hitesh
│ ├── filters
│ └── SimpleFilter.java
│ └── zuulGateway
│ └── GatewayApplication.java
└── resources
└── bootstrap.yml
/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
java -jar serviceRegistration/target/serviceRegistration-0.0.1-SNAPSHOT.war
54 |
55 |
56 | Eureka Endpoint -
57 | http://localhost:1111/
58 |
59 | Start the individual micro applications
60 |
61 | java -jar challengesWeb/target/challengesWeb-0.0.1-SNAPSHOT.war
62 |
63 | http://localhost:2222/
64 |
65 |
66 | Start the same application in the same JVM different port
67 | Example -
68 | ava -jar target/app.jar --server.port=3331
69 |
70 | Basically to override any spring boot properties use -- followed by Spring boot property name seprate with .
71 |
72 | java -jar challengesWeb/target/challengesWeb-0.0.1-SNAPSHOT.war --server.port=3331
73 |
74 | Your Microservice should be up at
75 | http://localhost:3331/api/challenges
76 |
77 |
78 |
79 | Starting the Heroes Application
80 |
81 | java -jar heroWeb/target/heroesWeb-0.0.1-SNAPSHOT.war
82 |
83 | Your other microservice should be up at
84 | http://localhost:2222/heroes
85 |
86 |
87 | Replicated Heroes Micro Application
88 |
89 | java -jar heroWeb/target/heroesWeb-0.0.1-SNAPSHOT.war --server.port=2223
90 |
91 | Replicate Microservice should be up at
92 | http://localhost:2223/heroes
93 |
94 |
95 | Starting the zuul Proxy
96 |
97 | java -jar zuulGateway/target/zuulGateway-0.0.1-SNAPSHOT.jar
98 |
99 | Deployed at port 5555
100 |
101 | You should be able to access your API using the Zuul gateway
102 |
103 | Heroes API via proxy - [Secure end point- basic security , User Name - user. Password - password ]
104 | http://localhost:5555/heroes-service/heroes
105 |
106 | Challenges API via proxy -
107 | http://localhost:5555/challenges-service/api/challenges
108 |
109 | Swagger Documentation-
110 | http://localhost:2222/swagger-ui.html#/
111 |
112 | http://localhost:3333/swagger-ui.html#/
113 |
--------------------------------------------------------------------------------
/challengesWeb/.classpath:
--------------------------------------------------------------------------------
1 |
2 | Author Name | 7 |Votes | 8 |Published Reasearch | 9 |
---|---|---|
{{author.name}} | 14 | 15 |{{author.publishedReasearcName}} | 17 | 18 |
12 | 13 | {{tweet.tweetMesg | summarize}} 14 |
15 |