ASP.NET Core MVC web application for planning trips, estimating trip cost, and tracking driving activity.
Smart Trip Cost Analyzer helps drivers understand the real cost of every journey before they start driving. It combines route distance and duration, vehicle fuel/energy consumption, AC usage, and current fuel assumptions to estimate trip expenses and expected travel effort. The platform is designed for everyday users who want to plan smarter trips and for admins who need visibility into usage trends and cost-related data.
At a glance, the system supports:
- Trip planning with cost-aware route insights
- Personal vehicle profiles to improve estimate accuracy
- History and analytics to compare driving behavior over time
- Admin monitoring tools for fuel data, users, and trip activity
- .NET 9 (ASP.NET Core MVC + Razor Pages)
- Entity Framework Core (SQL Server)
- ASP.NET Core Identity (authentication/authorization)
- AutoMapper
- MailKit/MimeKit (email sender)
- User authentication and account management with Identity
- Vehicle garage management (add, edit, delete, set default vehicle)
- Start trips with route and trip-cost calculation
- Trip history and completion summary
- Analytics dashboard for user trip statistics
- Admin area for managing users, vehicles, trips, fuel prices, and fuel efficiency
MVCProject/MVCProject.sln— solution fileMVCProject/MVCProject.ITI— main web appControllers— user-facing MVC controllersAreas/Admin— admin dashboards and management pagesDataAccessLayer— EF Core context, entities, repositories, migrationsServiceslayer— application/business servicesViewModels— view model classesViews— Razor views
- .NET SDK 9.0
- SQL Server (local or remote)
- Open:
MVCProject/MVCProject.ITI/appsettings.json
- Set the required values:
ConnectionStrings:DefaultConnectionAdmin:SeedEmail,Admin:SeedPassword,Admin:SeedFullNameEmail:*(SMTP settings)ExternalApis:*(weather and route service keys)
Security note: do not commit real secrets. Use environment variables or .NET user secrets for sensitive values.
From repository root:
cd MVCProject/MVCProject.ITI
dotnet ef database updateFrom repository root:
dotnet run --project MVCProject/MVCProject.ITI/MVCProject.ITI.csprojThen open the local URL printed in the terminal.
From repository root:
dotnet build MVCProject/MVCProject.sln
dotnet test MVCProject/MVCProject.sln- Admin role seeding runs automatically on application startup.
- If email confirmation is enabled, make sure SMTP configuration is valid.