Inspiration

Once upon a time, I was filling up my car with fuel when I noticed that the prices at different gas stations varied greatly. I wanted to save money on gas, but manually comparing prices was time-consuming and inefficient. That's when I came up with an idea for a new project - a web app that would automatically provide users with a list of the top five cheapest gas stations in their city, based on the type of fuel they needed. Sometimes the best ideas come from simple observations and a desire to make a difference in the world.

What it does

My app provides users with a list of the top 5 cheapest gas stations in their city based on the type of fuel they need, helping them save money on gas. Users can subscribe to the service and receive email notifications daily or monthly.

How I built it

  • My app was built in several stages. Firstly, I created the design using Figma, utilizing UI/UX principles to create an aesthetically pleasing and user-friendly interface.

  • Next, I translated the design into code using HTML, CSS, JavaScript, and Bootstrap. This involved building the front-end of the app and ensuring it was responsive and functional across different devices.

  • I then integrated CourierAPI and an API for getting fuel prices, allowing users to receive email notifications with updated pricing information. This required writing some functions to enable the app to interact with the APIs and gather the necessary data.

  • Finally, I built the back-end of the app using Flask framework and created a database to store user information and fuel prices. This involved setting up server-side scripting, database management, and testing to ensure the app was robust and reliable.

    Challenges we ran into

    Creating a checker to check the database by the date of sending notifications was a challenging task for me. This required creating an additional task to check the database and ensure that notifications were only sent out based on the specified schedule. The program runs in a loop, iterating over the rows in the user table, and updating the next_date field in the database based on the frequency of the checks (every day, once a week, twice a month, or once a month).

    Accomplishments that we're proud of

    I had created, knowing that I was helping people save money and make the most of their travels

    What's next for Fuel Price Hunter

    I will continue to refine and improve the app, adding new features and expanding its reach to other cities and regions.

  • Share this project:

    Updates