All works

SIPSATU

A mobile app and REST API for recording waste deposits at three waste banks in Tugurejo, Semarang.

Role
Software lead, team of three
Period
Jun–Oct 2024
Context
PPK Ormawa program, HMSISFO, Universitas Dian Nuswantoro
Status
Used during the program, no longer active
Copyright
Registered (HKI), first-listed creator
Stack
  • Flutter
  • Node.js
  • Express
  • Prisma
  • MySQL
SIPSATU app screens

Summary

  • Waste banks recorded deposits in notebooks. Totals were calculated by hand, and members could not check their own balance.
  • I led the software side, from field research to rollout: system and database design, the Flutter app, and the REST API.
  • Three waste banks used the app during the program, alongside their paper records.

Context

In Tugurejo, residents bring sorted waste to regular meetings. It is weighed, and the weight and value are written in a notebook. Totals were calculated by hand, past records were hard to find, there was no backup, and members had to ask the staff to know their balance.

My role

I was responsible for the software: field research, system and database design, the mobile app (Flutter), and the REST API. My two teammates built the public website, which used the same API, and prepared the training sessions.

From the field to the design

Before writing code, I visited the waste banks and neighborhood units several times, joined the sorting, and watched the process from weighing to recording. What I saw shaped the design:

  • Seen

    One resident often deposits several types of waste at once.

    Decided

    One deposit holds many items (type, weight, subtotal), not one row per deposit.

  • Seen

    Members are individuals, and also dawis: neighborhood groups represented by one person.

    Decided

    A group is one member account, so staff use the same input flow for both.

  • Seen

    Each waste bank sets its own categories and prices.

    Decided

    Categories and prices belong to a waste bank, so one system serves several waste banks.

  • Seen

    Many staff did not use email.

    Decided

    Login with a phone number, and an interface kept as simple as possible.

What I built

  • Deposit entry: staff pick a member, enter the weight for each waste type, and the total is calculated automatically.
  • Categories and prices, managed per waste bank.
  • Transaction history for staff.
  • A member view with balance, deposit history, and current prices.

Technical approach

The Flutter app talks to a REST API built with Express and Prisma, backed by MySQL. The public website uses the same API. Access is split by role (staff and member), passwords are hashed with bcrypt, and all input is validated on the server.

Two decisions keep the numbers consistent:

  • Subtotals are calculated on the server, not on the phone, so totals do not depend on what the app sends.
  • The balance is not stored as a separate number. It is calculated from completed deposits, so it cannot drift from the history.
Architecture: the mobile app and the website both call the REST API, which uses routes and controllers to reach a MySQL database.
The mobile app and the website share one REST API. Local storage on the phone only keeps the session token.

Rollout

We introduced the app to the staff of three waste banks and stayed with them while they used it. Paper records continued in parallel, so no data was at risk during the switch.

The hardest problems were not technical:

  • Many staff forgot their passwords. We helped them choose passwords they could remember.
  • The app was not on the Play Store, so Android showed a security warning during install, and staff were worried. We explained in person that the app was safe.

Outcome and reflection

Three waste banks used SIPSATU during the program. After the program ended, no one took over the system, and it stopped being used. Because paper records were kept, no resident data was lost.

What I learned:

  • Software for a community needs an owner after the builders leave. The handover (who runs the server, who can reset accounts) should be planned from the start.
  • Distribution is part of the product. An install warning was enough to lower trust; a Play Store release, even internal testing, belonged in the plan.
  • Self-service password reset should have been a feature, not something we solved by being there.

[ Contact ]

Got a role that fits?

mhm.ariyanto@gmail.com

Based in KudusOpen to work