SShortSingh.
Back to feed

How a Next.js and Capacitor meetup app was made to work offline

0
·3 views

The developer behind Moim, a meetup app that issues door QR codes, tested it in airplane mode and found that most features failed. Because Next.js navigates with data requests rather than full page loads, the app now pre-saves key screens and its static assets while online, and turns offline link clicks into page loads served from cache. An Android WebView quirk, where service worker registrations vanish after a process restart, was handled by having the native shell serve a bootstrap page that re-registers the worker. Chat messages are cached locally for only the last 50 messages per user and cleared on sign-out, while RSVPs and other writes are queued in an outbox that keeps only the latest intent. Actions like paid RSVPs remain online-only by design.

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
ProgrammingHacker News ·

Memtest86 v9.10 adds NUMA support for multi-socket servers

A new release of the Memtest86 memory testing tool, version 9.10, has been published on GitHub. The update introduces support for NUMA, the non-uniform memory architecture used in multi-socket servers. The release was shared on Hacker News, where it drew modest early attention. The source material provides no further details on the specific changes or testing behavior in this version.

0
ProgrammingDEV Community ·

Why saved video links break in published Replit apps and how to fix it

A developer building Replit apps found that saving videos from pasted TikTok, YouTube, Instagram or X links works in preview but fails once published. Social platform links point to web pages rather than downloadable files, so fetching them returns HTML instead of video. Files written to a deployment's local disk are also lost, because autoscale deployments restart regularly and scale to zero when idle. The recommended approach is to convert the link into a real file and store it in Replit's App Storage, which is private and accessed through an SDK. For direct file URLs, the article shows how to stream content straight into storage, while page links require a downloader service that can be harder to maintain in production.

0
ProgrammingDEV Community ·

How to Tell if a Domain Is Still Active in Python: NXDOMAIN, NODATA and SERVFAIL

A DEV Community guide explains that checking a domain's A record only shows whether an IP address was returned, not why a lookup failed. It distinguishes NXDOMAIN (the name does not exist in DNS), NODATA (the name exists but has no address record), and SERVFAIL (the domain's DNS is broken), noting that none of these alone confirms registration. The author recommends querying RDAP, the registries' JSON successor to WHOIS, for the domains DNS cannot resolve, while warning that registry terms restrict high-volume automated use. A standard-library Python script using Cloudflare's DNS-over-HTTPS endpoint sorts a domain list into these states, and the post closes with a hosted option built by the author.

0
ProgrammingDEV Community ·

Developer Builds Personal Website into Microservice Platform with Polished Interface

A developer set out to create a personal website to showcase work and experiment with ideas, but the project grew into a microservice-based platform. The developer designed, built, deployed, and maintains the system independently, with an emphasis on a cohesive, intentional visual experience. Feedback from the developer community praised both the interface design and the underlying engineering. The architecture splits responsibilities across a Next.js frontend, a NestJS backend with Prisma, a separate authentication service using Firebase Admin SDK, and a Python FastAPI service for computer vision, all orchestrated with Docker Compose and Caddy.