{"id":20816871,"url":"https://github.com/tanbirhossain/vehicletracking","last_synced_at":"2026-04-15T19:41:51.907Z","repository":{"id":115804535,"uuid":"372246569","full_name":"tanbirhossain/VehicleTracking","owner":"tanbirhossain","description":"Vehicle location tracking system","archived":false,"fork":false,"pushed_at":"2021-07-05T02:30:20.000Z","size":102,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-18T15:54:46.482Z","etag":null,"topics":["cqrs","docker","dotnet-core","integration-test","kubernetes","mediator-pattern","sql-server","unit-test"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tanbirhossain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-30T15:13:54.000Z","updated_at":"2021-06-16T04:57:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"d650849f-ecce-47dd-bea0-162d5248f710","html_url":"https://github.com/tanbirhossain/VehicleTracking","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanbirhossain%2FVehicleTracking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanbirhossain%2FVehicleTracking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanbirhossain%2FVehicleTracking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanbirhossain%2FVehicleTracking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tanbirhossain","download_url":"https://codeload.github.com/tanbirhossain/VehicleTracking/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243165501,"owners_count":20246722,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cqrs","docker","dotnet-core","integration-test","kubernetes","mediator-pattern","sql-server","unit-test"],"created_at":"2024-11-17T21:37:45.906Z","updated_at":"2026-04-15T19:41:46.876Z","avatar_url":"https://github.com/tanbirhossain.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vehicle Tracking Api\n\n## Installing\n\n#### Visual studio\n\nPlease make sure you've already installed Visual Studio 2019, .Net 5 SDK and SQL Server 2019 on your Windows 10 platform.\n\n[Visual Studio 2019](https://visualstudio.microsoft.com/downloads/)  \n[.Net 5](https://dotnet.microsoft.com/download/dotnet/5.0)  \n[Sql Server 2019](https://www.microsoft.com/en-us/sql-server/sql-server-downloads)\n\nSelect **VehicleTracking.sln** from `/VehicleTracking/` directory.\nChange database connection in `appsettings.json` from `VehicleTracking.Api` project .\n\n`ConnectionStrings` section in `appsettings.json`:\n\n```\n  \"ConnectionStrings\": {\n    \"VehicleTrackingConn\": \"Server=localhost;Database=VehicleTrackingDb;user id=sa;password=123456789;\"\n  },\n\n```\n\nRun `VehicleTracking.Api` application.\nI have implemented swagger documentation . You can see api documentation below url\n\n```\nApi documentation: https://localhost:5001/swagger/index.html\n```\n\n#### Docker\n\nMake sure you have installed and configured docker in your environment. After that, you can run the below commands from the `/VehicleTracking/` directory and get started with the VehicleTracking api immediately.\n\n```powershell\ndocker-compose build\ndocker-compose up\n```\n\nYou should be able to access api components of the application by using the below URLs :\n\n```\nApi: http://localhost:5100/\n```\n\n#### Local Kubernetes\n\nMake sure you have installed and configured Kubernetes in your environment.\nAfter that, you can run the below commands from the `/VehicleTracking/Kubernetes/` directory.\n\n```powershell\n ./build-images.ps1\n ./deploy-all.ps1\n```\n\nYou should be able to access api components of the application by using the below URLs :\n\n```\nApi: http://localhost:5100/\n```\n\n## How it works\n\n1. Register a client with first name, last name, email, password .\n2. Client can login with email, password. \n3. A registered client can add multiple vehicle with Name, DeviceId. DeviceId is unique id which you get from the GPS device.\n4. GPS device send vehicle location with deviceId, latitude, longitude for the authentic client.\n5. Authentic client can see their vehicle current location by vehicleId. Api will return longitude , latitude and address name. Google map api will return current address name based on the position.\n6. Client can also see the vehicle journey by vehicleId, start and end datetime.\n\n**Demo Login Credentials:**\n\nURL: `https://localhost:5001/api/v1/Account/Login`\n\n```\n{\n  \"email\": \"ovibhuiyan43@gmail.com\",\n  \"password\": \"1234\"\n}\n```\n\n## Extensibility\n\nIf the customer wants to add more properties then you should update Data Model.\nAfter that have to do migration below commands.\n\n```package manager\n add-migration \"Added properties\"\n update-database\n```\n\n## Bonus\n\nI have implemented google map geocode which will send address based on latitude and longitude. You can find in the `GoogleApiService` .\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanbirhossain%2Fvehicletracking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanbirhossain%2Fvehicletracking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanbirhossain%2Fvehicletracking/lists"}