← Academic projects

Software engineering

FuelTrack: interactive fuel-price analysis

ENSAI · September to December 2025 · tech lead

French fuel prices are public, but hard to use. Can a team turn them into a reliable application?

520+unit tests
≈ 75 %code coverage
01Context

Fuel prices in France are published as open data, in XML files that are fragmented and impractical to analyse directly.

02Question

How to give users a simple way to explore fuel prices, while keeping the code robust for a team of developers?

03Obstacle

The data had to be ingested, stored, secured behind accounts and analysed, by several developers working on the same codebase, without the project becoming fragile.

04Choices

How to organise the code?methodological question

Tension
Several developers, many features, one codebase.
Choice
A layered architecture: business objects, data access (DAO), services and interface, each with a clear role.

How to keep it reliable as it grows?methodological question

Tension
Every new feature can break an existing one.
Choice
A test strategy from the start, with unit tests and mocks for each layer.
05Work
  1. Open data (XML)
  2. Ingestion
  3. PostgreSQL
  4. Services
  5. FastAPI REST API
  6. Analysis and visualisation
Interface and REST APIFastAPI endpoints, accountsServicesbusiness rules, statisticsData access (DAO)SQL queries, one class per tablePostgreSQLstations, prices, shortagesIngestionopen data XML520+unit testswith mocks≈ 75 %coverage
Architecture: each layer only talks to the one below, so a developer can change the database access without touching the API, and each layer is tested on its own.
UML class diagram of FuelTrack: users, admin, database connection, data preprocessing and station, price, shortage and address classes
Real project diagram: the UML class diagram designed by the team before coding.
Swagger page of the French fuel track API with station, fuel and average price evolution endpoints
Real screenshot: the documented REST API (FastAPI and Swagger), with stations, fuels, services and price evolution.
06Checks
  • More than 520 unit tests and about 75 % coverage.
  • Shared conventions with Git and GitHub across the team.
07Outcome

An application delivered end to end: secure accounts, price trends over time, station comparison and a REST API, so that users explore prices without handling ingestion or storage.

08Limits

What remains open

  • A course project, not a public production service.

What I took from it

  • Architecture decisions pay off when several people work on the same code.
  • Tests are what make a team fast, not what slows it down.

The whole project in one sentenceA layered architecture and more than 520 tests let a team turn raw XML open data into a secure application and REST API for exploring French fuel prices.