Skip to content

.NET Core Microservices Sample with SPA Angular front end

License

Notifications You must be signed in to change notification settings

eposgmbh/MicroservicesSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservices Sample

Build Status

Microservices sample with a Angular SPA front end and several ASP.NET Core Web API back ends. The front end communicates with the back ends via an Ocelot API Gateway und synchronous HTTP. The microservices talk to each other via asynchronous RabbitMQ messaging.

Run

Run the following docker-compose command in the /docker folder:

$ docker-compose -f docker-compose.yaml -f docker-compose-infrastructure.yaml up --build

Usage

Angular front end

Launch a browser on http://localhost:80.

Notes Web-API

Make HTTP requests to localhost:5000, for example:

curl -X GET http://localhost:5000/api/v1/notes
curl -X GET http://localhost:5000/api/v1/notes/note-id
curl -X POST http://localhost:5000/api/v1/notes -H "Content-Type: application/json" -d '{ "text": "This is a text.", "author": "Jan Bohlen" }'

Architecture Guidance

License

MIT License

Copyright (c) 2017 eposgmbh

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.