All Projects

Vote Management System

Vote Management System

Web Development

# Vote Management System ## Overview The **Vote Management System** is a web-based application designed to manage elections efficiently. It allows administrators to create elections, manage candidates, and monitor votes, while providing voters a secure platform to cast their votes. This system simplifies election management by automating vote counting and ensuring transparency and reliability. ## Features * **Admin Panel:** * Add, edit, and delete elections. * Manage candidates for each election. * Monitor and tally votes in real-time. * **Voter Panel:** * Register and log in securely. * View available elections. * Cast votes for preferred candidates. * **Authentication & Security:** * Secure login system for admins and voters. * Prevents multiple votes from the same voter. * **Real-time Results:** * View election results immediately after voting ends. ## Technologies Used * **Backend:** PHP (Laravel Framework) * **Frontend:** HTML, CSS, JavaScript, Bootstrap * **Database:** MySQL ## Installation 1. **Clone the repository:** ```bash git clone https://github.com/theshakhawathosen/Vote-Management-System.git cd Vote-Management-System ``` 2. **Install dependencies:** ```bash composer install npm install ``` 3. **Environment setup:** * Copy `.env.example` to `.env` * Update database credentials in `.env` ```bash php artisan key:generate ``` 4. **Run migrations:** ```bash php artisan migrate php artisan db:seed # optional, if seeders exist ``` 5. **Serve the application:** ```bash php artisan serve ``` ## Usage 1. **Admin Access:** * Register or log in as an admin. * Create elections and candidates. * Monitor votes and results. 2. **Voter Access:** * Register as a voter. * Log in and view elections. * Cast vote for chosen candidates. ## Contributing Contributions are welcome! You can: * Report issues * Suggest new features * Submit pull requests Please follow standard GitHub workflows and code guidelines. ## License This project is licensed under the MIT License. See the `LICENSE` file for details. ## Contact * **Developer:** Shakhawat Hosen * **GitHub:** [https://github.com/theshakhawathosen](https://github.com/theshakhawathosen) --- This project provides a simple and secure voting solution for organizations, clubs, or small-scale elections.

File Uploader with PHP-AJAX

File Uploader with PHP-AJAX

Web Development

# Secure File Uploader A modern, secure, and user-friendly file uploading web application with shareable links. ![Secure File Uploader](https://raw.githubusercontent.com/iamshakhawat/Ajax-File-Uploader-with-PHP/refs/heads/main/uplaod.png) ## Features - ๐Ÿ”’ **Secure Uploads** - Multiple security checks including MIME type validation and malicious content scanning - ๐Ÿ“ค **Drag & Drop** - Intuitive drag-and-drop interface for file uploads - ๐Ÿ”— **Shareable Links** - Generate unique, secure download links for uploaded files - ๐Ÿ“Š **File Management** - View, organize, and delete uploaded files - ๐ŸŽจ **Modern UI** - Beautiful, responsive design with TailwindCSS - โšก **Fast Performance** - Optimized for speed with AJAX uploads - ๐Ÿ›ก๏ธ **Type Safety** - Comprehensive file type validation and blocking of dangerous extensions ## Supported File Types Images, Documents, Videos, Audio, Archives, Code Files, and more: - Images: JPG, JPEG, PNG, GIF, SVG, WebP - Documents: PDF, DOC, DOCX, TXT, XLS, XLSX, PPT, PPTX - Media: MP4, AVI, MOV, MP3, WAV - Archives: ZIP, RAR - Code: JSON, XML, HTML, CSS, JS ## Installation ### Requirements - PHP 7.4 or higher - Web server (Apache, Nginx, etc.) - 100MB+ free disk space ### Steps 1. **Clone the repository** ```bash git clone https://github.com/yourusername/secure-file-uploader.git cd secure-file-uploader ``` 2. **Create upload directory** ```bash mkdir u chmod 755 u ``` 3. **Configure web server** - Point document root to project directory 4. **Access the application** ``` http://localhost/share/ ``` ## Usage ### Upload Files 1. Navigate to the upload page 2. Drag files into the drop zone or click "Browse Files" 3. Review selected files 4. Click "Upload Files" 5. Copy shareable links from success modal ### View Files Click "View All Files" to see uploaded files, their sizes, and upload dates. ### Delete Files - Double-click the file icon to enable delete mode - Select files and delete individually or all at once ## Configuration Edit upload settings in PHP files: ```php // upload.php define('MAX_FILE_SIZE', 104857600); // 100MB define('UPLOAD_DIR', './u/'); // Upload directory ``` ## Security Features โœ… File extension validation โœ… MIME type checking โœ… Malicious content scanning โœ… File size limits โœ… Directory traversal prevention โœ… Unique filename generation ## Project Structure ``` secure-file-uploader/ โ”œโ”€โ”€ index.html # Upload interface โ”œโ”€โ”€ download.html # File management โ”œโ”€โ”€ upload.php # Upload handler โ”œโ”€โ”€ get_files.php # Retrieve files list โ”œโ”€โ”€ delete.php # Delete handler โ”œโ”€โ”€ u/ # Upload directory โ””โ”€โ”€ readme.md # This file ``` ## API Endpoints ### POST /upload.php Upload a file. Returns success status and shareable link. ### GET /get_files.php Retrieve all uploaded files with metadata. ### POST /delete.php Delete file(s). Accepts `filename` or `delete_all` parameter. ## Contributing Contributions are welcome! Please: 1. Fork the repository 2. Create feature branch (`git checkout -b feature/amazing-feature`) 3. Commit changes (`git commit -m 'Add amazing feature'`) 4. Push to branch (`git push origin feature/amazing-feature`) 5. Open Pull Request ## Development Feel free to submit issues and enhancement requests! ## License MIT License - see LICENSE file for details ## Support For issues or questions, please open a GitHub issue. --- ## Author **Shakhawat** - [shakhawatdev.com](https://shakhawatdev.com) Made with โค๏ธ for the community

Meal Management System

Meal Management System

Web Development Laravel

# ๐Ÿฝ๏ธ Meal Management System --- ## ๐Ÿ“Œ Overview The **Meal Management System** is a web-based application that helps manage meals, expenses, and deposits for shared living environments such as bachelor messes, hostels, and dormitories. It automates calculations and ensures transparency for all members. --- ## ๐ŸŽฏ Why Use This System? * Avoid manual calculation errors * Track meals and expenses easily * Calculate fair meal rates automatically * View clear monthly summaries --- ## ๐Ÿงฐ Technology Used * **Backend:** PHP (Laravel) * **Frontend:** Blade, HTML, CSS, JavaScript * **Database:** MySQL * **Authentication:** Laravel Auth --- ## โœจ Key Features ### ๐Ÿ‘ค Member Management * Add, edit, or remove members * Activate or deactivate members ### ๐Ÿฝ๏ธ Meal Management * Daily meal entry * Automatic total meal calculation ### ๐Ÿ’ฐ Expense Management * Add daily or monthly expenses * Automatic expense total ### ๐Ÿ’ณ Deposit Management * Record member deposits * Track balance and due ### ๐Ÿ“Š Automatic Calculation ``` Meal Rate = Total Expenses / Total Meals Member Cost = Member Meals ร— Meal Rate ``` ### ๐Ÿ“‘ Reports * Monthly summary * Individual member report ### ๐Ÿ” Security * Secure login system * Admin-only access --- ## โš™๏ธ Installation (Quick Guide) ### Requirements * PHP 8.0+ * Composer * MySQL * Node.js & NPM ### Setup Steps ``` git clone https://github.com/theshakhawathosen/Meal-Management-System.git cd Meal-Management-System composer install npm install && npm run build ``` Create database and import SQL: ``` CREATE DATABASE meal_management; mysql -u username -p meal_management < mealmanager.sql ``` Configure environment: ``` cp .env.example .env php artisan key:generate php artisan serve ``` Open in browser: ``` http://127.0.0.1:8000 ``` --- ## ๐Ÿ“– How to Use * Login as admin * Add members * Enter daily meals * Add expenses and deposits * View monthly reports --- ## ๐Ÿ—‚๏ธ Project Structure ``` app/ database/ resources/ routes/ public/ mealmanager.sql README.md ``` --- ## ๐Ÿš€ Future Improvements * PDF reports * Mobile-friendly UI * Charts & analytics * Role-based access --- ## ๐Ÿงพ Credits **Developer:** Shakhawat Hosen GitHub: [https://github.com/theshakhawathosen](https://github.com/theshakhawathosen) --- ## ๐Ÿ“œ License MIT License โญ Star the repository if you find it useful.