Alten Challenge Solution is a solution for tracking vehicles statuses and the solution is built using Microservices Architecture.
-
Customer Service Customer servive is a microservice for managing customers that has vehicles and the CRUD opertion for customers. It has its own database. also it has its own Endpoints.
-
Vehicle Service Vehicle Service is a microservice for managing vehicles and CRUD opertions for for Vehicles. It has its own database Endpoints.
-
The Front-End Portal The front-end portal is a web portal built using .NET core and Angular JS that provides a user experienced user interface of vehicles with statuses as a real time tracking. The interface will show ping statuses for all vehicles in a single page application.The end user will be able to filter by specific customer or specific vehicle status.
-
Simulation Web Job The simulation web Job is an Azure Web Job that will simulate the real time ping that run in the back ground every minute and update the vehicles ping log.
The soltion is developed using Visual Studio 2019 and .NET Core 2.2. Dependency Injection applied to every project solution. every microservice has solution folder and every solution folder has a deployment project to deploy the microservice to Microsoft Azure account.
As explained web front-end is .NET Core 2.2 and angular js project.
Every Web API Project has Db initializer to add dummy data to database when the web API first run
[https://localhost:44332/api/Customers/GetCustomers]
[http://localhost:9319/api/Vehicles/GetVehicles]
[http://localhost:9319/api/Vehicles/UpdateVehicles]
[http://localhost:9319/api/VehiclesPing/AddPingData]
Unit testing is applied to Customers and Vehicles Microservices using nUnit and Moq testing frameworks.
Every Microservice has a deployment project that can be used to deploy it to production (Azure Subscription)
- Cusromers
-
DatabaseInstance folder in Alten.Customers.Deploy contains the Powershell that can be used to deploy db instance but add your subscription id to the power shell.
-
BackendDbSchema contains the database scripts of Customer database.
-
BackendWeb folder in Alten.Customers.Deploy contains the Powershell that can be used to deploy Customers Web API but you need to add Subscription id and db connection string.
- Vehicles
-
DatabaseInstance folder in Alten.Vehicles.Deploy contains the Powershell that can be used to deploy db instance but add your subscription id to the power shell.
-
BackendDbSchema contains the database scripts of Vehicle database.
-
BackendWeb folder in Alten.Vehicles.Deploy contains the Powershell that can be used to deploy Vehicles Web API but you need to add Subscription id and db connection string.
- Simulation Web API
- Alten.Simulation.Deploy contains the Powershell that can be used to deploy Simulation Web API but you need to add Subscription id.
- Simulation Web Job
- Can be deployed using visual studio under Simulation Web API so it can be run in the context of the Simulation Web API.
- Portal
- Publish the Alten.Portal then using Alten.Portal.Deploy project that contains the power shell deploy portal to Azure.
Enhancements will be done to the solution