Coder Social home page Coder Social logo

altenchallenge's Introduction

Alten Challenge

Alten Challenge Solution

Introduction:

Alten Challenge Solution is a solution for tracking vehicles statuses and the solution is built using Microservices Architecture.

Solution Architecture:

  1. 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.

  2. Vehicle Service Vehicle Service is a microservice for managing vehicles and CRUD opertions for for Vehicles. It has its own database Endpoints.

  3. 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.

  4. 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.

Solution Structure:

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.

Solution Structure

Portal:

As explained web front-end is .NET Core 2.2 and angular js project.

Portal Home Page

Portal Home Page

Web APIs:

Every Web API Project has Db initializer to add dummy data to database when the web API first run

Customers:

[https://localhost:44332/api/Customers/GetCustomers]

Vehicles:

[http://localhost:9319/api/Vehicles/GetVehicles]

[http://localhost:9319/api/Vehicles/UpdateVehicles]

[http://localhost:9319/api/VehiclesPing/AddPingData]

Unit Testing

Unit testing is applied to Customers and Vehicles Microservices using nUnit and Moq testing frameworks.

Deployment

Every Microservice has a deployment project that can be used to deploy it to production (Azure Subscription)

  1. 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.

  1. 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.

  1. 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.
  1. 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.
  1. Portal
  • Publish the Alten.Portal then using Alten.Portal.Deploy project that contains the power shell deploy portal to Azure.

Enhancement

Enhancements will be done to the solution

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.