40 of 40
Pages
HomeSpecialtiesPortfolioAboutContact
Projects
Easy TruckEngineering and operations · São Paulo, SP, BrazilDuvale ConveniênciaRetail · Carlos Chagas, MG, BrazilCacimbah Casa de PraiaHospitality · Caraíva, Porto Seguro, Bahia, BrazilPorto Engenharia ForenseEngineering and operations · Belo Horizonte, MG, BrazilGestFrotaPublic sector and education · Carlos Chagas, MG, BrazilFlávio PradoLaw · Minas Gerais, Brazil · serves clients nationwideHotel Avenida CCHHospitality · Carlos Chagas, MG, BrazilAbiel Gomes NutricionistaHealth and therapy · Carlos Chagas, MG, Brazil · online consultationsAna Paula MaiaHealth and therapy · Teófilo Otoni, MG, Brazil · online sessions in Brazil and abroadBarbearia LotusFitness and beauty · BrazilBrisa CumuruHospitality · Cumuruxatiba, Prado, Bahia, BrazilClínica EntrelinhasHealth and therapy · Teófilo Otoni, MG, Brazil · online sessions in Brazil and abroadE.E. Dr. João BeraldoPublic sector and education · Carlos Chagas, MG, BrazilEscola IDECPublic sector and education · Teófilo Otoni, MG, Brazil · online and in person coursesEspaço CrescerHealth and therapy · Carlos Chagas, MG, Brazil · in person sessionsEspaço PetsRetail · Brazil · internal pet shop useHōma e LojinhaRetail · Far south of Bahia, BrazilKronos Consultoria e TreinamentosConsulting and marketing · Vila Velha, ES, Brazil · serving MG, ES and BANexLarOwn products · Online, anywhere in BrazilOlá Amiga BagsRetail · Online sales over WhatsAppOliveira & Jesus AdvogadosLaw · Itamaraju, BA, Brazil · in person and by video callPH FitnessFitness and beauty · BrazilPoliana PachecoHealth and therapy · Teófilo Otoni, MG, Brazil · online sessionsRD Consultoria FinanceiraConsulting and marketing · Remote service, anywhere in BrazilSarah BarretoLaw · Teófilo Otoni, MG, Brazil · online and in personSocorro MenezesHealth and therapy · Online sessions across BrazilYanzimRetail · Brazil · used at the shop counterInova Odontologia IntegradaHealth and therapy · Eldorado, Contagem, MG, BrazilNorteOwn products · Online, anywhere in BrazilBabaOwn products · Boston, MA, United StatesFox Studio HubConsulting and marketing · Carlos Chagas, MG, BrazilYonder · Sistema de QualidadeConsulting and marketing · Minas Gerais, Brazil
Talk
Message on WhatsAppCall+55 (33) 98465 6356Ver em português
All projects

Retail · Management PWA with sync

Yanzim

Brazil · used at the shop counter

Sales, stock and store credit system for a tobacco shop and snack bar, installable on the phone and able to keep selling offline.

Home screen of Yanzim, a project developed by André Gomes
Client
Sedinha Tabacaria e Lanchonete, a counter shop that sells a lot on store credit
Where
Brazil · used at the shop counter
Technology
HTML · CSS · JavaScript · PHP 8 · PDO · MySQL · Service Worker · PWA
Status
Private access · yanzim.nexialabs.com.br
Development
André Gomes · NexiaLabs

In short

Yanzim is the sales, stock and store credit system of Sedinha Tabacaria e Lanchonete, built by André Gomes at NexiaLabs. It runs as an installable app on phone and computer, saves every sale on the device first and then syncs it to a MySQL database on the hosting plan. It is written in plain HTML, CSS and JavaScript, with a PHP 8 API.

The client

Sedinha is a tobacco shop and snack bar that serves people over the counter, with neighborhood customers who buy now and pay later. Tracking store credit, stock and cash depended on notes and memory. The owner uses his phone during the day and the shop computer at other times. The connection at the shop is unstable, so any system that froze without signal would stop sales.

The challenge

The system had to record a sale in seconds, including installment store credit, and know who owes how much and since when. It had to work offline and still show the same data on phone and computer. It also could not require an application server or an extra monthly fee, because it runs on ordinary shared hosting. And installments had to add up exactly to the sale total, with no stray cents.

What was built

André built an installable web app that works on the device first and on the server second. Each sale is saved instantly in the browser and enters a queue that uploads to MySQL as soon as there is a connection, and every minute the app pulls what changed on the other device. The point of sale accepts cash, pix, debit, credit and store credit with a down payment and up to six installments, and warns when a sale exceeds the customer limit. Collection messages and receipts come out ready for WhatsApp. The first version kept everything in the browser only, and the business rules were isolated in a single file precisely so storage could be swapped for an API without touching the screens.

What the system does

  • Dashboard with daily sales, credit receivable, overdue installments, a 14 day chart and low stock products.
  • Point of sale with search, category filter, discount, custom items and five payment methods.
  • Store credit with down payment, up to six installments, limit warnings and full or partial payment.
  • A single customer payment is spread automatically over the oldest installments.
  • Collection messages and receipts ready to send over WhatsApp.
  • Cash book with automatic entries from sales and manual expenses and withdrawals.
  • Reports on revenue, gross profit, margin, average ticket and best sellers, with CSV export.
  • Login checked on the server, thirty day session and file backup.

// For whoever reviews the code: architecture and decisions.

Under the hood

  • HTML
  • CSS
  • JavaScript
  • PHP 8
  • PDO
  • MySQL
  • Service Worker
  • PWA

The front end is plain HTML, CSS and JavaScript, with no framework and no build step, served as static files on Hostinger shared hosting. All business rules live in store.js, which keeps data in browser local storage; a cloud module sends changes to a PHP 8 API using PDO and MySQL, through a single entry point. In the database, the records table stores each item with two timestamps, the device one to resolve conflicts and the server one to know what still needs to be pulled, and deletions travel as tombstones. A network first service worker lets the app open without signal.

Technical decisions

  1. Write to the device first and sync later, so a sale never freezes when the connection drops.
  2. Sync per record with client and server timestamps, so two devices can edit different things without overwriting each other.
  3. Compute installments in cents, so they always add up to the sale total.
  4. bcrypt passwords, httponly and samesite strict cookie, a ten minute lockout after eight failures and a custom header required on every write.

Does your business look like this one?

Fits a grocery, tobacco shop, snack bar or any counter business that sells on credit and needs to know who owes what, without a paper notebook.

Frequently asked questions

Who developed Yanzim?

Yanzim was developed by André Gomes Andrade, a full stack developer from Carlos Chagas, Minas Gerais, Brazil, at NexiaLabs, from planning to launch.

Where is the client of Yanzim based?

Sedinha Tabacaria e Lanchonete, a counter shop that sells a lot on store credit. Brazil · used at the shop counter.

Which technologies were used to build Yanzim?

Yanzim uses HTML, CSS, JavaScript, PHP 8, PDO, MySQL, Service Worker, and PWA.

Can you build a similar project for my business?

Yes. Every project is custom built, with code and accounts in the client's name. The first step is a WhatsApp conversation at +55 (33) 98465 6356 to understand what you need.

More retail projects

A custom system starts with a conversation.

Tell me quickly what you need. The reply comes from a real technical path, not a ready made template.

Prefer to go straight there?

Message on WhatsApp

Or call: +55 (33) 98465 6356