# Projects — Leonardo Costa | Django, PostgreSQL and Vue.js

> Projects by Leonardo Costa: institutional websites, web systems with payments, CRMs and AI integrations, built with Django, PostgreSQL, Astro, Vue.js and Next.js.

- URL: https://leonardocosta.dev/en-us/projects
- Language: en-US
- Portuguese version (pt-BR): https://leonardocosta.dev/pt-br/projects

## Altaris Love

- URL: https://leonardocosta.dev/en-us/projects/altaris-love
- Period: 2026-07 → present
- Website: https://altaris.love/
- Repository: https://github.com/leon-rdo/altaris
- Technologies: Django, Model Context Protocol (MCP), AI Agents, OpenAI API, Redis
- Featured project: ✓

Custom wedding website builder—create yours in minutes: gifts via PIX and credit card, online RSVP, photo gallery, and a visual editor that shows everything in real time. Built with Django, Alpine, and HTMX.

Under the hood: Django, Celery, and a Model Context Protocol (MCP) server with 100+ tools (token auth, rate limiting, audit log), plus an in-editor AI assistant that reuses the same tools.

## VARtura

> AI-powered auditing platform for Brazilian electricity bills. Customers upload the invoice PDF; the platform extracts the data, checks tariff, flag surcharge, taxes and solar credits against the utility's rules, and returns a report with the recoverable amount.

- URL: https://leonardocosta.dev/en-us/projects/vartura
- Period: 2025-12 → present
- Website: https://vartura.com.br
- Technologies: Django REST Framework, Django, Python, Nuxt.js, Celery, PostgreSQL, Flutter, LlamaIndex, RAG, OpenAI API, Anthropic API, Redis, TypeScript, Grafana
- Featured project: ✓

VARtura audits Brazilian electricity invoices and shows, line by line, where the utility overcharged.

The flow starts at the PDF upload: the invoice is read, the data extracted with LLM assistance and normalised into a common model. The analysis then runs against the rules that apply to that state, that utility and that account type — TE + TUSD tariff, flag surcharge, ICMS calculation base, public lighting levy and SCEE solar credit compensation. The output is a report with the estimated recoverable amount and the steps to dispute it.

I worked across all three sides of the product:

• Backend — Django REST Framework on PostgreSQL, served by Daphne (ASGI), with Celery + Redis for asynchronous invoice and analysis processing. Subscriptions and recurring billing through Mercado Pago. Object-level permissions with django-rules, multi-company support with collaborators, and a fully translated message catalogue (pt-BR/en) enforced by tests.

• Web — Nuxt 4 with hybrid rendering: public marketing pages are prerendered for SEO while the authenticated app runs as an SPA. Pinia for state, session auth with CSRF, and consumption/savings charts.

• Mobile — a Flutter app (iOS and Android) for end users, built with Riverpod, go_router navigation and a Dio interceptor chain handling JWT refresh, plan gating and API error translation.


The analysis pipeline uses LlamaIndex with OpenAI and Anthropic models. It started as a RAG over the applicable rules; after measuring cost and recall in production, retrieval was replaced by deterministic rule injection with prompt caching, in a single model call per report. Observability runs on Prometheus, Loki and Grafana, with Sentry for errors.

## Customer Resolve

> Customer app for Resolve Energia Solar clients to track their solar installation — stages, documents and deadlines.

- URL: https://leonardocosta.dev/en-us/projects/customer-resolve
- Period: 2024-05 → 2025-08
- Website: https://play.google.com/store/apps/details?id=com.resolveCliente&hl=uz
- Technologies: Django REST Framework
- Featured project: ✓

## FBG-PA

> Institutional website for the Pará chapter of the Brazilian Federation of Gastroenterology.

- URL: https://leonardocosta.dev/en-us/projects/fbg-pa
- Period: 2023-10 → 2023-12
- Website: https://fbgpa.org/
- Technologies: Django, Bootstrap
- Featured project: ✓

## ZooUnama

> Promotional site for the UNAMA zoo. Beyond showcasing the animals, it raises awareness about rescues from abuse and helps gather donations to keep the work going.

- URL: https://leonardocosta.dev/en-us/projects/zoounama
- Period: 2022-10 → 2024-10
- Website: http://www.zoounama.com.br/
- Technologies: Django, Bootstrap
- Featured project: ✓

## João Farias Fit

- URL: https://leonardocosta.dev/en-us/projects/joao-farias-fit
- Period: 2026-07 → present
- Website: https://joaofarias.fit/
- Repository: https://github.com/joaofarias15028/joaofarias/
- Technologies: Astro, Tailwind CSS

Promotional landing page for physical education professional João Farias. Built using the Astro framework and hosted on an Oracle Cloud instance.

## FMP Engenharia

> Institutional website for FMP Engenharia Diagnóstica e Construções, static, fast and SEO-ready.

- URL: https://leonardocosta.dev/en-us/projects/fmp-engenharia
- Period: 2026-10 → present
- Website: https://fmpengenharia.com.br
- Technologies: Astro, Tailwind CSS

Institutional website for FMP Engenharia Diagnóstica e Construções. Built with Astro (static output) and Tailwind CSS v4, with no back-end, SEO, structured data and cookie consent.

## FFBVI

> Website for the Bela Vista I Football Federation: sign-up list, Pix payments, team draw and man-of-the-match voting.

- URL: https://leonardocosta.dev/en-us/projects/ffbvi
- Period: 2023-07 → present
- Website: https://ffbvi.com
- Repository: https://github.com/leon-rdo/FFBVI
- Technologies: Django, Python

Website that runs the weekly football game of a church community in Belém (PA), Brazil: sign-up list and fee payment via Pix with automatic confirmation, guests, team draw, man-of-the-match voting, top scorers and finances for the admins. Built with Django and MySQL, with automated tests and a custom mobile-first design.
