Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Offline-first Notes App

A web app built with Flask and vanilla Javascript that lets users take notes even without the internet. Notes are stored locally (IndexedDB) while offline and later synced to the backend (Flask+SQLite) when online

Tech

  • Backend: Python, Flask, SQLite
  • Frontend: HTML, CSS, JavaScript
  • Offline storage: IndexedDB in the browser

Features

  • login page available for cross device and browser connection
  • Create, edit or delete notes.
  • Manual Sync button to push unsynced notes when the connection is back.
  • Search bar to filter notes by title or content.

Offline-First Architecture

  • The UI always works with an in-memory notes array.
  • Every change (create/update/delete) is applied to:
    • the notes array
    • IndexedDB (local database in the browser)
  • If navigator.onLine is true, the app also calls the Flask API to update the server.
  • Notes have a needs_sync flag, and the Sync button sends those notes to the server and updates local copies after success.

How to run

  1. Install dependencies pip install -r requirements.txt

  2. Run the app: python app.py

  3. Open http://127.0.0.1:5000/ in browser

  4. Login and start creating notes.

Code that's still left to do

  • Registering page
  • login page email verification

Future scope

  • background sync
  • conflict resolution

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages