SShortSingh.
Back to feed

How Temperô integrated iFood orders into its restaurant SaaS — and the bugs found along the way

0
·3 views

Temperô, a multi-tenant restaurant management SaaS built on Node/TypeScript and PostgreSQL, set out to automatically route iFood marketplace orders into its internal kitchen, payment, and delivery workflows without requiring staff to operate two systems simultaneously. Because iFood does not support inbound webhooks, the team implemented a polling mechanism that calls iFood's Order API every 15 seconds using a flag-guarded setInterval loop to prevent overlapping executions. The platform adopted iFood's 'Centralised' credential model — a single OAuth2 client_credentials token filtered per merchant — which required mid-project refactoring of the token cache from a per-unit to a shared in-memory store. Version one of the integration covers delivery orders only; takeout and dine-in requests arriving via the marketplace are automatically cancelled, and menu items are ingested using name and price directly from the payload rather than being mapped to Temperô's internal catalogue. The article also details a prolonged investigation into why cancellation-confirmation events occasionally never arrived, tracing the issue to subtle differences between the iFood event fields 'code' and 'fullCode'.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Guide: Deploy Google Gemma 4 on Amazon SageMaker Using vLLM and MCP Tools

A developer has published a step-by-step guide for deploying Google's Gemma 4 E2B language model to an Amazon SageMaker real-time endpoint running on a single NVIDIA L4 GPU. The setup uses AWS's published vLLM container and relies entirely on standard AWS CLI commands, making each step reproducible manually or through an MCP server. A Python-based MCP server built on the MCP SDK 2.x provides tools for managing the deployment, with Claude Code acting as the MCP client via stdio transport. SageMaker handles infrastructure concerns such as container placement, health checks, request routing, and logging to CloudWatch, eliminating the need to manage instances or load balancers. The project is open source and available on GitHub, requiring Python 3.11 or newer, AWS CLI v2, and a SageMaker endpoint quota for a compatible L4 GPU instance type.

0
ProgrammingDEV Community ·

Developer builds free daily app to help Java programmers keep up with new versions

A software developer created NextPatch, a free web app designed to help Java developers stay current with the language's fast-moving release cycle, which ships a new version every six months. The tool offers short daily exercises — taking roughly three minutes — that cover language changes across version jumps such as Java 8 to 11 and Java 21 to 25. Each session includes a brief summary of one feature change paired with a coding challenge, such as fill-in-the-blank or bug-fixing tasks, graded server-side without executing user code. The app supports English, Spanish, and Catalan, includes XP tracking, streaks, and leaderboards, and requires no payment or subscription. Currently in beta and running on a Raspberry Pi via a Cloudflare Tunnel, the developer is seeking user feedback to guide future development.

0
ProgrammingDEV Community ·

Developer Builds Open-Source Stock Prediction App Using 7 ML Algorithms as Learning Project

A university student learning machine learning built an open-source stock price prediction application called Stock Price Prediction, available on GitHub under the handle ankit02327. The app incorporates seven ML algorithms — including Linear Regression, Random Forest, SVM, ARIMA, and an Autoencoder — applied to data from 1,001 US and Indian stocks. It features five years of historical data, 38 technical indicators, offline-first functionality, and automatic USD/INR currency conversion, requiring no API keys to run locally. The project has grown to include 27 contributors and 14 releases since its launch. Planned upgrades include a FastAPI migration, Redis caching, PostgreSQL integration, Docker Compose support, and a news sentiment analysis module.

0
ProgrammingDEV Community ·

Mom Returns to Gym After Three Years of Raising Twins Without Childcare

A mother living in Spain returned to the gym for the first time in three years after spending that period raising her twin boys without daycare while working full time alongside her husband. The twins recently started school in Spain, freeing up several hours a day that she had not had access to since they were born. On her first day back, she admitted feeling like a beginner, having forgotten how to use the equipment and finding her body out of practice. She described the milestone as a celebration of everything she and her husband had accomplished during an intense few years that also included a work promotion. Now currently between jobs and actively interviewing, she plans to make regular gym sessions a priority once her schedule stabilises.