#262 added working eureka sample (#333)

This commit is contained in:
Tom Pallister
2018-04-26 09:38:36 +01:00
committed by GitHub
parent 027bf6867a
commit 5b63f333f7
18 changed files with 411 additions and 12 deletions

View File

@ -0,0 +1,39 @@
#Example how to use Eureka service discovery
I created this becasue users are having trouble getting Eureka to work with Ocelot, hopefully this helps.
Please review the implementation of the individual servics to understand how everything fits together.
##Instructions
1. Get Eureka installed and running...
```
$ git clone https://github.com/spring-cloud-samples/eureka.git
$ cd eureka
$ mvnw spring-boot:run
```
Leave the service running
2. Get Downstream service running and registered with Eureka
```
cd ./DownstreamService/
dotnet run
```
Leave the service running
3. Get API Gateway running and collecting services from Eureka
```
cd ./ApiGateway/
dotnet run
```
Leave the service running
4. Make a http request to http://localhost:5000/category you should get the following response
```json
["category1","category2"]
```