A simple single-page application for writing and saving notes. Features a Python Flask backend with SQLite database storage and a clean, responsive frontend.
- ✍️ Write and save notes instantly
- 📋 View all saved notes in chronological order
- 🗑️ Delete notes you no longer need
- 💾 Persistent storage with SQLite database
- 🎨 Beautiful, responsive UI with gradient design
- ⚡ Real-time updates without page refresh
- Python 3.7 or higher
- pip (Python package manager)
- Install the required Python packages:
pip install -r requirements.txt- Start the Flask server:
python app.py- Open your web browser and navigate to:
http://localhost:5000
quick-note-app/
│
├── app.py # Flask backend server
├── templates/
│ └── index.html # Frontend single-page application
├── requirements.txt # Python dependencies
├── notes.db # SQLite database (created automatically)
└── README.md # This file
Retrieve all notes from the database.
Response:
[
{
"id": 1,
"content": "My first note",
"created_at": "2026-07-07 10:30:00"
}
]Create a new note.
Request Body:
{
"content": "This is my note"
}Response:
{
"id": 1,
"content": "This is my note",
"created_at": "2026-07-07 10:30:00"
}Delete a note by ID.
Response:
{
"message": "Note deleted successfully"
}-
Frontend (HTML/CSS/JavaScript):
- User writes a note in the textarea
- JavaScript sends a POST request to the backend
- Notes are fetched and displayed dynamically
- Delete functionality sends DELETE requests
-
Backend (Flask/Python):
- Receives HTTP requests from the frontend
- Processes CRUD operations (Create, Read, Delete)
- Interacts with SQLite database
- Returns JSON responses
-
Database (SQLite):
- Stores notes persistently in
notes.db - Automatically created on first run
- Schema includes: id, content, created_at
- Stores notes persistently in
- Backend: Python, Flask, SQLite
- Frontend: HTML5, CSS3, Vanilla JavaScript
- Database: SQLite
- API: RESTful JSON API
Ctrl + Enter(orCmd + Enteron Mac): Save note
- The database file (
notes.db) is created automatically when you first run the application - CORS is enabled for development purposes
- The app runs in debug mode by default
- Notes are stored with timestamps in UTC
- Edit existing notes
- Search and filter notes
- Categories or tags
- Rich text formatting
- User authentication
- Export notes to file
This project is open source and available for educational purposes.