Web application · CASE STUDY

AutoCiclo

Digital vehicle records with service history, expenses, documents and maintenance reminders.

The challenge

Organize maintenance for multiple vehicles in a history that is easy to consult and update.

The solution

Multi-vehicle garage, timeline, expenses by category, private documents and printable reports.

Main features

  • Multi-vehicle garage and mileage history.
  • Maintenance, alerts, categorized expenses and private documents.
  • Printable report, timeline and record organization indicator.

Architecture

Next.js and TypeScript, Supabase with PostgreSQL, authentication, storage and Row Level Security.

  1. Next.js
  2. Supabase Auth
  3. PostgreSQL + RLS
  4. Private storage

Decisions and lessons learned

  • RLS policies are part of account-level access control for records.
  • Installable PWA, but data still requires an internet connection.
  • The AutoCiclo Score reflects record organization, not mechanical condition.

Scope and limitations

The PWA requires connectivity to access data. The organization indicator is not a mechanical assessment.

Availability

Source code
Public
Application
Public overview
Case study
Available
Status
Published

Context and problem

Vehicle maintenance usually lives in loose receipts and memory. AutoCiclo organizes services, mileage, expenses and documents as a record per vehicle.

How it works

  1. Vehicle setup
  2. Mileage and maintenance
  3. Due-date alerts
  4. History and expenses
  5. Printable report

Business rules

  • Several vehicles per account, with archive and delete.
  • Lowering mileage asks for confirmation and stays in the history.
  • Monthly due dates keep JavaScript's calendar rollover: Jan 31 plus one month lands in March when February lacks the day.
  • The AutoCiclo Score (0 to 100) measures how organized the recorded maintenance is. It is not a mechanical diagnosis.
  • Old unlinked maintenance records stay separate from the total, without being deleted or auto-linked.

Technical challenges and solutions

  • Challenge: Isolating each user's data. Solution: Row Level Security on Supabase PostgreSQL and dedicated Storage policies.
  • Challenge: Expenses counted twice when maintenance and costs overlapped. Solution: A fix that keeps old maintenance out of the total without losing records.
  • Challenge: Exporting the full history consistently. Solution: Export adjusted to include every history item.

Security and privacy

  • Database RLS, client and admin profiles, and private file storage.
  • The service role key is never used on the frontend.
  • The administration panel is for the author's internal use.

Tests and evidence

  • Unit tests with Vitest run in CI. App data requires a connection: there is no offline mode.

Lessons learned

  • Access policies in the database reduce what the frontend must get right.
  • Date arithmetic has edge cases that deserve their own tests.

Current status

Hosting as documented in the repository: published on Vercel and Supabase. The first load may be slow and demo data may be removed. Installable PWA.

Documented evidence

  • Migrations and RLS policies in the repository
  • Unit tests with Vitest
  • Actual screenshots of the homepage and features
Interface screenshot from AutoCiclo.
Interface screenshot from AutoCiclo.