Online and Offline Functionality Overview
This site, built on a standard Rails 7 framework using the default asset pipeline with Importmaps, is designed to handle saving data in both online and offline scenarios.
Test here: Posts
- Technology Stack:
- Framework: Rails 7 with asset pipeline and Importmaps for managing JavaScript modules.
- Database: PostgreSQL
- Local Storage: Dexie.js library utilized to interact with IndexedDB.
- Done Offline Data Handling: Data such as new posts are saved locally on your device using IndexedDB through Dexie.js. This approach ensures that no data is lost even when connectivity is intermittent or unavailable.
- In Progress Online Synchronization: Once the network connection is restored, the data stored locally is automatically synchronized with our server. This ensures that any posts created while offline are uploaded, maintaining consistency across all devices and sessions.
- Done Visual Network Status Indicator: A visual indicator displays the current network status (online or offline), providing clear feedback on whether your actions are being processed locally or synchronized with the server.
- Done Complex Records: Increase the complexity of locally saved records. Accomodate associations and nested records.
- Done Progressive Web App: Turn app into a PWA with the ability to 'install' on devices and utilize certain functions without internet connection.