# Work_Notebook **Repository Path**: ccvincent/Work_Notebook ## Basic Information - **Project Name**: Work_Notebook - **Description**: work用的,测试用哟 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-28 - **Last Updated**: 2025-06-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Work Notes Management System ## 1 This is a simple work notes management application based on Flask, supporting creation, editing, and deletion of note records. The application uses Docker for containerized deployment. ## Features - Complies with containerized deployment requirements - Supports complete CRUD operations for notes - Clearly structured template system - Uses a database for persistent storage ## Technology Stack - Python 3.11 - Flask framework - SQLAlchemy database - Docker containerization ## File Structure ``` . ├── Dockerfile # Docker configuration file ├── app.py # Flask main program ├── requirements.txt # Python dependency file └── templates/ # Template files ├── add.html # Add note template ├── base.html # Base template ├── edit.html # Edit note template └── index.html # Home template ``` ## Installation and Deployment Deploy using Docker: ```dockerfile FROM python:3.11 COPY . . COPY requirements.txt . EXPOSE 5000 CMD ["python", "./app.py"] ``` ## Functional Description ### Data Model ```python class Note(db.Model): # Note data model id = db.Column(...) # Primary key content = db.Column(...) # Content field note_type = db.Column(...) # Type field (daily/weekly/monthly) timestamp = db.Column(...) # Timestamp ``` ### Main Routes ```python @app.route('/') # Home page @app.route('/add') # Add note @app.route('/edit/') # Edit note @app.route('/delete/') # Delete note ``` ## Usage Instructions 1. Access the homepage after starting the container to view the note list 2. Click "New Record" to add a note 3. Use the edit/delete buttons to manage existing notes ## Template Description - `base.html` provides the basic layout - `index.html` displays the note list and filtering functionality - `add.html` provides the add form - `edit.html` provides the edit form ## Database An SQLite database is used, with the file stored at `instance/database.db`. The table structure includes id, content, type, and timestamp fields. ## Dependencies Please check the Python dependency list in the `requirements.txt` file.