Back to Portfolio

Chatarra System

Metallic Scrap Shipment Control

Internal Project (no public link)

Screenshots

About the Project

System developed for a Bolivian metallurgical company that needed to
control the entire flow of metallic scrap collection and transportation. The system manages
from driver and vehicle registration to detailed weighing records.

As operations happen in areas with limited connectivity, the system was developed
as a PWA (Progressive Web App) with offline functionality and automatic synchronization
when connection is restored.

Features

Complete Weighing Records

Gross weight, tare, and net weight control with complete history of each transported load.

Driver and Vehicle Control

Complete driver registration with documentation and vehicles with capacities and maintenance records.

Materials and Destinations Management

Material categories with prices, delivery destinations, and route control.

PWA with Push Notifications

Works offline with automatic synchronization and sends notifications about delivery status.

Tech Stack

Backend

Ruby on Rails 8

Database

PostgreSQL

Frontend

Hotwire (Turbo + Stimulus)

Mobile

PWA / Service Workers

Notifications

Web Push API

Technical Challenges

Offline Functionality

Problem

Drivers needed to record weighings in areas without internet.

Solution

Implemented Service Workers with IndexedDB for local storage, synchronization queue with automatic retry, and visual connection status indicators.

Data Synchronization

Problem

Conflicts when the same record was edited offline by different users.

Solution

Created an optimistic versioning system with conflict detection and manual resolution interface when necessary, always prioritizing the most recent data.

Interested in similar projects?

Get in touch to discuss how I can help with your next project.