{"id":26053435,"url":"https://github.com/nittaany/expense_ledger","last_synced_at":"2026-05-06T11:37:13.330Z","repository":{"id":281235614,"uuid":"944643671","full_name":"Nittaany/Expense_Ledger","owner":"Nittaany","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-07T18:59:05.000Z","size":726,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-07T19:20:25.828Z","etag":null,"topics":["budget-management","budget-tool","budget-tracker","js","miniproject","php","sql"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nittaany.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-07T17:57:10.000Z","updated_at":"2025-03-07T19:04:47.000Z","dependencies_parsed_at":"2025-03-07T19:20:28.302Z","dependency_job_id":"c31143f2-b746-4b56-966f-eac0d6e2eabe","html_url":"https://github.com/Nittaany/Expense_Ledger","commit_stats":null,"previous_names":["nittaany/expense_ledger"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nittaany%2FExpense_Ledger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nittaany%2FExpense_Ledger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nittaany%2FExpense_Ledger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nittaany%2FExpense_Ledger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nittaany","download_url":"https://codeload.github.com/Nittaany/Expense_Ledger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242515864,"owners_count":20142120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["budget-management","budget-tool","budget-tracker","js","miniproject","php","sql"],"created_at":"2025-03-08T07:28:28.860Z","updated_at":"2026-05-06T11:37:13.289Z","avatar_url":"https://github.com/Nittaany.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ExpenseLedger - Budget Tracking System\n\n## 📌 Project Overview\n\nExpenseLedger is a **budget tracking system** built using **PHP** and **MySQL**, designed to help users efficiently manage their expenses. This project is a small college-level mini-project that allows users to **set a budget, track expenses, and generate reports** based on different time periods.\n\n---\n\n## 🚀 Features\n\n### 🏠 Dashboard\n\n- Provides an overview of expenses and budget.\n- Displays a summary of financial activities.\n\n### 💰 Set Budget\n\n- Users can define their monthly budget.\n- Helps in tracking expenses against the set budget.\n\n### 📑 Expenses\n\n- Allows users to **add, view, and manage** expenses.\n- Categorizes expenses for better analysis.\n\n### ➕ Add Expenses\n\n- Users can log new expenses with details like **amount, category, and date**.\n\n### 🛠 Manage Expenses\n\n- Edit or delete expenses as needed.\n- Maintain a clean and organized record.\n\n### 📊 Expense Reports\n\n- Generates expense reports based on different time frames:\n  - **Date-wise Report**: View expenses for a selected date range.\n  - **Monthly Report**: Tracks expenses for a particular month.\n  - **Yearly Report**: Provides an overview of yearly spending trends.\n\n---\n\n## 🛠 How to Run This Project\n\n### 1️⃣ **Clone the Repository**\n\n```sh\ngit clone https://github.com/Nittaany/Expense_Ledger.git\ncd Expense_Ledger\n```\n\n### 2️⃣ **Start a Local Server**\n\nUse the built-in PHP server:\n\n```sh\nphp -S localhost:8000\n```\n\nYour project should now be accessible at **http://localhost:8000**.\n\n### 3️⃣ **Set Up the Database**\n\n#### ✅ **Create Database**\n\nCheck If MySQL Is Installed\n\n```sh\nmysql --version\n```\n\nit will show some version number. Then,\n\n```sh\nmysql -u root -p\n```\n\nEnter your MySQL password (leave blank if none is set), then:\n\n```sql\nCREATE DATABASE expenseman;\n```\n\nExit MySQL (`exit;`).\n\n#### ✅ **Import Database**\n\n```sh\nmysql -u root -p expenseman \u003c /Users/nitant/Documents/Expense-Ledger/DATABASE_FILE/expenseman.sql\n```\n\n### 4️⃣ **Verify Database Connection**\n\nCheck the **connection.php** file:\n\n```php\n$dsn = 'mysql:host=localhost; dbname=expenseman';\n$user = 'root';\n$pass = 'your_sql_password';\n//replace your MySQL password with your_sql_password\n\ntry {\n    $pdo = new PDO($dsn, $user, $pass);\n} catch (PDOException $e) {\n    echo \"Connection Error! \" . $e-\u003egetMessage();\n}\n```\n\nIf you face issues, update **$user** and **$pass** based on your MySQL credentials.\n\n### 5️⃣ **Run the Project**\n\nRestart the PHP server:\n\n```sh\nphp -S localhost:8000\n```\n\nAccess **http://localhost:8000** in your browser.\n\n---\n\n## 🛠 Common Issues and Solutions\n\n### ❌ Error: \"Connection Error! SQLSTATE[HY000] [2002] No such file or directory\"\n\n**Solution:**\n\n1. Ensure MySQL is running:\n   ```sh\n   brew services start mysql\n   ```\n2. Try connecting using:\n   ```sh\n   mysql -u root -p\n   ```\n3. If access is denied, reset MySQL root password:\n   ```sh\n   ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'newpassword';\n   FLUSH PRIVILEGES;\n   ```\n   Then update `connection.php` with `newpassword`.\n\n### ❌ Error: \"phpMyAdmin Not Found\"\n\n**Solution:**\n\n1. Install phpMyAdmin:\n   ```sh\n   brew install phpmyadmin\n   ```\n2. Start the server and try accessing **http://localhost/phpmyadmin**.\n\n### ❌ Error: \"Access denied for user 'root'@'localhost' (using password: NO)\"\n\n**Solution:**\n\n1. Restart MySQL:\n   ```sh\n   brew services restart mysql\n   ```\n2. If the issue persists, reset the password (as shown above).\n\n---\n\n## 🎯 Future Enhancements\n\n- Implement user authentication for better security.\n- Add graphical insights for expense trends.\n- Enable multi-user access with separate budgets.\n\n---\n\n## 📞 Support\n\nIf you face any issues, feel free to raise an issue in the GitHub repository or contact me.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnittaany%2Fexpense_ledger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnittaany%2Fexpense_ledger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnittaany%2Fexpense_ledger/lists"}