mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-20 17:22:51 +08:00

* +semver: major upgrading from net5.0 to net6.0 * packages upgraded * removed global.json for ocelot sf sample * update build image * test new build * remove make * fix tests * make test fail like in CI * tests passing locally * updated docs Co-authored-by: TGP <thomasgardham-pallister@Thomass-MacBook-Pro-2.local>
#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
-
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
-
Get Downstream service running and registered with Eureka
cd ./DownstreamService/ dotnet run
Leave the service running
-
Get API Gateway running and collecting services from Eureka
cd ./ApiGateway/ dotnet run
Leave the service running
-
Make a http request to http://localhost:5000/category you should get the following response
["category1","category2"]