Skip to content

diegonicolas250/meisterwerk-quote-manager

Repository files navigation

Meisterwerk Quote Manager

This project is a quote management application with a focus on handling data offline, without an internet connection, using expo-sqlite. This library is particularly useful for offline handling as it is lightweight and an efficient way to store and retrieve data locally.

Quotes retrieved from GET requests are stored locally and are used instead of performing a new fetch when offline. Additionally, for creating new quotes, if there’s no internet connection, instead of a POST request, the quote is added to the local database with an isSynced field set to false (0).

There is a component to display the number of unsynced quotes, along with a button to manually trigger syncing once the internet is online. Upon successful syncing, these quotes are marked in the local database as isSynced (1) to indicate they’re up-to-date.

Project Structure

Key Features

  • Offline Persistence: Quotes are stored in SQLite for offline access, allowing to view quotes without internet connection.
  • Queued Offline Posting: New quotes created offline are flagged as unsynced.
  • Manual Syncing: Users can sync unsynced quotes manually when back online.

Installation

  1. Clone the repository:
    git clone https://github.com/diegonicolas250/meisterwerk-quote-manager.git
    cd meisterwerk-quote-manager
    npm install
    expo start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published