Skip to content

Api gateway with Ocelot, Java Spring Boot and asp.net core

License

Notifications You must be signed in to change notification settings

MBakirci/API-Gateway-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Gateway

A demo with Ocelot API Gateway.

Quick start

Install Docker

run start.sh to start

run stop.sh to stop

Getting started

Run Consul

docker run -d --name consul -p 8500:8500 consul

Build the docker images

docker build -t api-gateway gateway/.

docker build -t product-java product-service/.

docker build -t weather WeatherForecast/.

Run services

docker run -d -p 800:80 --link consul:consul api-gateway

docker run -d -p 850:8080 --link consul:consul product-java

docker run -d -p 900:80 --link consul:consul weather