- Scrooge Rental API is Azure Cloud hosted .NET 6 application supporting GraphQL
- Using free SQL Server from AppHarbor
- To sparkle the idea basic demo of Azure Service Bus & Azure Function is included in this example
- Check out our Wiki for more in depth explanations ;)
John Doe
wants to rent a car for the weekend via Scrooge Rental Web application. Steps allowed:- get all cars available for renting
- get all self created rent-orders
- create a
rent a car order
- Scrooge Rental API doesn't have own email service & should rely on external one. Steps allowed:
- add
rent a car order
details in own database - send a
rent a car order confirmation email
event to a Azure Service Bus mesage queue
- add
- Email service is notifyed via Azure Service Bus. Steps allowed:
- bake the email template upon received data
- send email to the user
John Doe
rent a car order confirmation email sent
details are returned back to Azure Service Bus message queue
- The user
John Doe
should receive actual confirmation email by that time with included vizualisations - Azure function is triggered. Steps allowed:
- receives
rent a car order confirmation email sent
details returned back in the Azure Service Bus message queue - writes the data in the database used by the originator of the event
- receives
- Should have:
- Visual Studio
optional
- .NET 6
- Visual Studio
- Navigate to
API -> appsentings.json
& updatedbconn
by your own preference - Navigate to
API -> Properties -> launchSentings.json
& updatesslPort
to be44381
- Upon
API
folder run:update-database
- this will create the db schema- then
dotnet build
- if all goes fine then execute
dotnet run
- SQL Server setup, EF migrations & seeding manipulations can be achieved by reading our wiki page
- Try it out at local env
- GraphQL Voyager: https://localhost:44381/graphql-voyager/
- Open Banana Cake Pop at https://localhost:44381/graphql/ & execute the following query:
query{ cars{ id maker maker year fuelType imageUrl } }
- GraphQL Voyager: https://scrooge-rental-api.azurewebsites.net/graphql-voyager/
- Open Banana Cake Pop at https://scrooge-rental-api.azurewebsites.net/graphql/ & execute the following mutation:
TODO: add mutation here
- Use real email if you want to receive the actual email
- Use
Scrooge Rental
web application keeping in mind the rules for using real email if intrested of the email template. Can change the name either for fun ;)