Skip to content

The LPG consumption cost calculator is a ASP.NET MVC web application for storing, analyzing and managing the costs of fuel and gas consumption for cars with an LPG installation.

smfichadiya/LpgConsumptionCostCalculator

 
 

Repository files navigation

Contributors Forks Stargazers Issues LinkedIn


LPG CCC

LpgConsumptionCostCalculator

The LPG consumption cost calculator is a web application for storing, analyzing and managing the costs of fuel and gas consumption for cars with an LPG installation.

Report Bug · Request Feature

Table of Contents

About The Project

LpgConsumptionCostCalculator is a ASP.NET MVC5 web app designed for storing, analyzing and managing the costs of fuel and gas consumption for cars with an LPG installation. Project created for my own needs to support me and my wife with cooperatively analyzing and managing costs of travel with petrol car using LPG installation, but it can either be use for diesel cars with LPG installation. More details in Usage section.

Used Technologies

Getting Started

To get a local copy up and running follow these simple steps:

  • Download the latest stable version from the download tab and unzip it to your folder
  • Open the solution in Visual Studio 2019.
  • Clean solution.
  • Build the solution to install Nuget packages.
  • In case of RoslynCompilerBug run following in PM Console:
Update-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -r
  • Change in web project in Web.config the data needed for Okta Identity:
    <add key="okta:ClientId" value="yourClientId" />
    <add key="okta:ClientSecret" value="yourClientSecret" />
    <add key="okta:OktaDomain" value="yourOktaDomain" />
    <add key="okta:Token" value="yourOktaToken" />
  • Change in data project in FirebaseConn.cs file the data for your Firebase Database connection:
namespace LpgConsumptionCostCalculator.Data.Services
{
    public class FirebaseConn
    {
        private const String databaseUrl = "yourDatabaseUrl";
        private const String databaseSecret = "yourDatabaseSecret";
  • Run application
  • Fire up your browser and open url https://localhost:44396/
  • Enjoy ;-)

Please note that I have tested the app in Chrome browser where no issues where discovered.

Usage

This section contains screens of application's parts with all main functionalities.

List of cars

After clicking List in CARS section from navigation bar the list of cars is shown. Guest can view the list of entered cars and check selected car details on seperate modal. In addition, it is possible to search the list, order columns and set the number of entries on one page.

List of cars

Logged user can additionally add new car, edit or delete existing one.

New car form

List of receipts

After clicking name of the chosen car and then selecting Fuel receipts in FUEL RECEIPTS section from navigation bar the list of receipts is shown. Guest can view the list of receipts for selected car and check details of fuel recipt. In addition, it is possible to search the list, order columns and set the number of entries on one page.

List of receipts

Logged user can additionally add fuel receipt, edit or delete existing one.

New fuel receipt form

Important data, trends and reports generating

After clicking name of the chosen car and then selecting Graphs in FUEL RECEIPTS section from navigation bar the graphs and reports section is shown. Guest can view the important fuel consumption and fuel price data from selected time range. In addition the graphs with fuel consumption and fuel price for 100 km is shown.

Graphs

Logged user can additionally export report to PDF or CSV file from selected time range.

Report configuration

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. 🍴 Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. 🔃 Open a Pull Request

Contact

Mateusz Donhefner

Project Link: https://github.com/matdon90/LpgConsumptionCostCalculator

About

The LPG consumption cost calculator is a ASP.NET MVC web application for storing, analyzing and managing the costs of fuel and gas consumption for cars with an LPG installation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.9%
  • ASP.NET 0.1%