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
- Backend: Python, Flask, SQLite
- Frontend: HTML, CSS, JavaScript
- Offline storage: IndexedDB in the browser
- 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.
- The UI always works with an in-memory
notesarray. - Every change (create/update/delete) is applied to:
- the
notesarray - IndexedDB (local database in the browser)
- the
- If
navigator.onLineis true, the app also calls the Flask API to update the server. - Notes have a
needs_syncflag, and the Sync button sends those notes to the server and updates local copies after success.
-
Install dependencies pip install -r requirements.txt
-
Run the app: python app.py
-
Open
http://127.0.0.1:5000/in browser -
Login and start creating notes.
- Registering page
- login page email verification
- background sync
- conflict resolution