Data Summary Viewer is a web application that enables users to filter and view data from a MySQL database based on selected dates and usernames. The application is built with Svelte for the frontend and Flask for the backend.
myproject/
├── .gitignore # Specifies files and directories to be ignored by Git
├── .vscode/
│ ├── settings.json # VS Code settings (e.g., live server port)
├── backend_flask.py # Flask backend that connects to MySQL and provides API endpoints
├── package.json # Project metadata and dependencies
├── public/
│ ├── build/
│ │ ├── bundle.css # Compiled CSS file
│ │ ├── bundle.js # Compiled JavaScript file
│ ├── global.css # Global styles for the application
│ ├── index.html # Main HTML file containing the Svelte app
├── README.md # Project documentation (this file)
├── rollup.config.js # Rollup module bundler configuration
├── scripts/
│ ├── setupTypeScript.js # Script to enable TypeScript
├── src/
│ ├── App.svelte # Main Svelte component
│ ├── main.js # Entry point for the Svelte application
├── package-lock.json # Dependency tree lock file
backend_flask.py
using Flask./api/table_data
: Retrieves table data based on the provided start date, end date, and optional username./api/usernames
: Fetches a list of unique usernames from the database.pymysql
for database interaction.flask_cors
to handle Cross-Origin Resource Sharing (CORS).App.svelte
is the main component that fetches and displays data.rollup.config.js
.package.json
.setupTypeScript.js
can be used to configure TypeScript support.global.css
.index.html
.pip install flask flask_cors pymysql
python backend_flask.py
npm install
npm run dev
http://127.0.0.1:5000/
.http://localhost:5000/
.This project is licensed under the MIT License.
For any inquiries or contributions, feel free to reach out or submit a pull request.