Files
KCAPDemoServer/TASK.md

51 lines
2.3 KiB
Markdown
Raw Normal View History

2025-05-08 20:20:26 -04:00
# Task List - Flask AR API Demo
2025-05-08 20:49:15 -04:00
## Phase 1: Basic Admin UI ✅
2025-05-08 20:20:26 -04:00
2025-05-08 20:49:15 -04:00
* [x] Create a simple admin UI (no authentication required for demo purposes).
* [x] Allow adding, updating, and deleting products.
* [x] Store all product data in a `products.json` file for persistence.
* [x] Store images in the `static/images/` directory.
* [x] Implement basic form validation for product fields (ID, price, image).
* [x] Add a file upload feature for product images.
2025-05-08 20:20:26 -04:00
## Phase 2: API Improvements
2025-05-08 20:49:15 -04:00
* [x] Update the `/arinfo` endpoint to read from `products.json` instead of the in-memory dictionary.
2025-05-08 20:20:26 -04:00
* [ ] Add support for updating product attributes via the API.
2025-05-08 20:49:15 -04:00
* [x] Implement error handling and input validation.
2025-05-08 20:20:26 -04:00
* [ ] Optimize image loading for better performance.
## Phase 3: UI Enhancements
2025-05-08 20:49:15 -04:00
* [x] Add a responsive design for mobile and tablet support.
* [x] Include image previews in the admin UI.
2025-05-08 20:20:26 -04:00
* [ ] Add sorting and search capabilities for the product list.
2025-05-08 20:49:15 -04:00
* [x] Add barcode and QR code generation for products.
## Implementation Notes
* The APIs and admin UI have been implemented as a single server for demonstration purposes.
* The API endpoints and admin interface are now served by the same Flask application.
* Bootstrap 5 has been used for responsive UI design.
* Basic validation has been implemented for product forms.
* Flash messages provide user feedback for actions.
* Barcode generation features support three formats:
* QR Code: Links directly to the product's AR information endpoint
* EAN-13: Standard barcode format for retail products
* Code 128: High-density alphanumeric barcode
* Generated barcodes can be previewed, downloaded individually, or printed all at once.
* Barcodes are dynamically generated and stored in the `static/barcodes/` directory.
2025-05-08 20:20:26 -04:00
## Future Ideas
* [ ] Write basic unit tests for the API.
* [ ] Dockerize the application for easier deployment.
* [ ] Add a basic CI/CD pipeline (e.g., GitHub Actions or GitLab CI).
* [ ] Add user authentication for the admin UI.
* [ ] Implement role-based access control (RBAC).
* [ ] Add analytics for product views and updates.
* [ ] Integrate with a database for larger product catalogs.
2025-05-08 20:49:15 -04:00
* [ ] Add bulk import/export functionality for products.
* [ ] Implement a mobile-friendly scanner interface for testing the AR functionality.