mirror of
https://github.com/sassanix/Warracker.git
synced 2025-12-31 10:39:35 -06:00
v0.05.2
# Changelog ## [0.05.2-beta] - 2024-03-05 ### Added - Multiple serial numbers support for warranties - Users can now add multiple serial numbers per warranty item - Dynamic form fields for adding/removing serial numbers - Database schema updated to support multiple serial numbers - Added settings menu - Added Darkmode ### Changed - Enhanced warranty management interface - Improved form handling for serial numbers - Better organization of warranty details - Optimized database queries with new indexes - Added index for serial numbers lookup - Added index for warranty ID relationships ### Technical - Database schema improvements - New `serial_numbers` table with proper foreign key constraints - Added indexes for better query performance - Implemented cascading deletes for warranty-serial number relationships ### Fixed - Form validation and handling for multiple serial numbers - Database connection management and resource cleanup
🛡️ Warracker
Warracker is an open-source warranty tracker application designed to help you effortlessly keep track of product warranties, expiration dates, and related documentation.
🌟 Overview
Warracker is a web-based application that provides a centralized system for managing all your product warranties. Key features include:
- Tracking product warranties in one central location.
- Adding warranty details, including purchase dates and duration.
- Uploading and storing warranty documentation and receipts.
- Providing visual indicators for active, expiring soon, and expired warranties.
- Searching through your warranty collection.
📸 Screenshots
✨ Features
- Warranty Management: Add, edit, and delete warranty information.
- Document Storage: Upload and securely store receipts and warranty documentation.
- Status Tracking: Visual indicators for warranty status (active, expiring soon, expired).
- Search: Easily find warranties by product name.
- Responsive Design: A seamless experience on both desktop and mobile devices.
🛠️ Technology Stack
- Frontend: HTML, CSS, JavaScript
- Backend: Python with Flask
- Database: PostgreSQL
- Containerization: Docker and Docker Compose
- Web Server: Nginx
🚀 Installation
Prerequisites
- Docker and Docker Compose installed on your system.
- Git (for cloning the repository).
Setup
-
Clone the Repository:
git clone https://github.com/yourusername/warracker.git cd warracker -
Start the Application:
docker-compose up -d -
Access the Application:
Open your browser and navigate to
http://localhost:8005.
📝 Usage
Adding a Warranty
- Fill in the product details on the left panel.
- Enter the purchase date and warranty duration.
- Optionally upload receipt/documentation.
- Click the "Add Warranty" button.
Managing Warranties
- Use the search box to filter warranties.
- Click the edit icon to modify warranty details.
- Click the delete icon to remove a warranty.
💻 Development
Local Development Environment
-
Clone the repository.
-
Make your changes.
-
Build and run with Docker Compose:
docker-compose build docker-compose up -d
Project Structure
warracker/
├── backend/ # Python Flask backend
│ ├── app.py # Main application logic
│ ├── requirements.txt # Python dependencies
│ └── init.sql # Database initialization
├── frontend/ # Web frontend
│ ├── index.html
│ ├── script.js
│ └── style.css
├── docker-compose.yml # Docker configuration
├── Dockerfile # Container definition
└── nginx.conf # Web server configuration
🗺️ Roadmap
- User authentication.
- Email reminders for expiring warranties.
- Mobile app.
- Settings page.
- Status page.
🛠️ Troubleshooting
Common Issues
- Connection Refused Error: Ensure all containers are running (
docker-compose ps). Verify the backend is correctly connected to the database. - Database Errors: If schema issues arise, double-check that the database initialization script (
init.sql) matches the expected schema inapp.py.
🤝 Contributing
Contributions are welcome! We encourage you to submit a Pull Request.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/amazing-feature). - Commit your changes (
git commit -m 'Add some amazing feature'). - Push to the branch (
git push origin feature/amazing-feature). - Open a Pull Request.
📜 License
This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details.
🙏 Acknowledgements
- Flask
- PostgreSQL
- Docker
Languages
JavaScript
45.6%
Python
25.2%
HTML
18.4%
CSS
10.3%
Dockerfile
0.3%
Other
0.2%