Sample .NET Core application, powered by Microsoft, based on a simplified microservices architecture.
Basic requirements to start projects:
- .Net 5
- SqlServer
- RabbitMq
- NodeJs
To run solution, Projects Endpoints.HttpGateway
, Endpoints.Oauth
& Endpoints.WebApi
should be config to start together.
To do that, select properties on BookStore solution, then under Multiple startup projects, select start action for that project's name.
Before start projects, setting up connection strings in appsetting file of each project. Also, there is need to config rabbitMq port connection, username & passwords.
To view the guest angular panel, start that separately. To do that, in root of book-seller directory, run ng serve -o
in command line. for login use this credentials:
Password: admin@123
Username: admin@live.com
For simplicity, added book to shop developed as a single API. Seller can user this API to add its new books. Access to this book should be done through client_credentials
authentication flow. to use this api, use information bellow to ge new token:
grant_type: client_credentials
client_id: seller-client
client_secret: seller-secret
password: admin@123
username: admin@live.com
- .Net 5.0
- Identity Server 4
- Swagger
- MassTransit
- Ocelot Gateway
- .NET Framework
- Angular