{"id":29440026,"url":"https://github.com/tasnimalshair/smarttask-api","last_synced_at":"2026-04-27T16:32:02.175Z","repository":{"id":303738438,"uuid":"1013588394","full_name":"tasnimalshair/SmartTask-api","owner":"tasnimalshair","description":"SmartTask is a Laravel 12 RESTful API for managing tasks. It features authentication (Sanctum), CRUD operations, weekly stats, notifications, scheduling, and full Postman documentation.","archived":false,"fork":false,"pushed_at":"2025-07-13T05:35:01.000Z","size":354,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-13T07:26:41.765Z","etag":null,"topics":["backend","laravel","mysql","notifications","php","postman","queue","rest-api","sanctum","scheduler","statistics","task-manager","todoapp"],"latest_commit_sha":null,"homepage":"","language":"Blade","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/tasnimalshair.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,"zenodo":null}},"created_at":"2025-07-04T06:32:23.000Z","updated_at":"2025-07-13T05:35:04.000Z","dependencies_parsed_at":"2025-07-09T07:35:27.752Z","dependency_job_id":null,"html_url":"https://github.com/tasnimalshair/SmartTask-api","commit_stats":null,"previous_names":["tasnimalshair/todolist-app","tasnimalshair/smarttask-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tasnimalshair/SmartTask-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tasnimalshair%2FSmartTask-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tasnimalshair%2FSmartTask-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tasnimalshair%2FSmartTask-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tasnimalshair%2FSmartTask-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tasnimalshair","download_url":"https://codeload.github.com/tasnimalshair/SmartTask-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tasnimalshair%2FSmartTask-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278239972,"owners_count":25954097,"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","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["backend","laravel","mysql","notifications","php","postman","queue","rest-api","sanctum","scheduler","statistics","task-manager","todoapp"],"created_at":"2025-07-13T10:01:56.565Z","updated_at":"2025-10-03T22:51:33.883Z","avatar_url":"https://github.com/tasnimalshair.png","language":"Blade","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📝 SmartTask – Laravel API for Task Management\n\nSmartTask is a powerful task management back-end API built with Laravel 12.\nIt includes:\n1) Secure user authentication using sanctum\n2) Full CRUD for tasks\n3) Email and database weekly notifications\n4) Weekly statistics\n6) Scheduled reports\n\n---\n\n## 🚀 Features\n\n- 🔐 User authentication with Laravel Sanctum\n- 📝 Full CRUD operations for todos (linked to each user)\n- 📁 Full CRUD for categories (linked to each user)\n- 📬 Notifications when tasks are completed (Email + stored in DB)\n- 📊 Weekly statistics endpoint\n- 🕒 Scheduled weekly report via email and database\n- 🌱 Seeders for test data population\n- 📦 Form Requests for validation handling\n- 🧩 API Resources for clean and consistent JSON responses\n- 🧪 API documentation with Postman collection\n- 📸 Screenshots included for quick reference\n\n\n---\n\n## 🛠️ Technologies Used\n\nThis project was built using the following technologies and tools:\n\n- **Laravel 12** – PHP framework for web applications\n- **PHP 8.x** – Core programming language\n- **MySQL** – Relational database for storing tasks and users\n- **Laravel Sanctum** – For API token authentication\n- **Form Requests** – For input validation and clean controller logic\n- **API Resources** – For formatting consistent JSON responses\n- **Mail \u0026 Notifications** – For sending email and database notifications\n- **Queue System** – For background email delivery (async notifications)\n- **Task Scheduling** – For sending weekly reports via email\n- **Postman** – For API testing and documentation\n- **Seeder \u0026 Faker** – For generating test data during development\n- **Git \u0026 GitHub** – For version control and project sharing\n\n---\n\n## ⚙️ Installation\n\n```bash\ngit clone [https://github.com/USERNAME/smarttask-api.git](https://github.com/tasnimalshair/Todolist-App.git)\ncd Todolist-App\ncomposer install\ncp .env.example .env\nphp artisan key:generate\nphp artisan db:seed\nphp artisan migrate\nphp artisan serve\n````\n\n\u003e To enable scheduled reports and notifications:\n\n```bash\nphp artisan queue:work\nphp artisan schedule:work\n```\n\n---\n\n## 🔐 Authentication – API Endpoints\n\n### 📌 Auth\n\n| Method | Endpoint      | Description          |\n| ------ | ------------- | -------------------- |\n| POST   | /api/register | Register a new user  |\n| POST   | /api/login    | Log in and get token |\n\n### 📝 Todos\n\n| Method | Endpoint        | Description            |\n| ------ | --------------- | ---------------------- |\n| GET    | /api/todos      | Get all user tasks     |\n| GET    | /api/todos/{id} | Get a specific task    |\n| POST   | /api/todos      | Create a new task      |\n| PUT    | /api/todos/{id} | Update a specific task |\n| DELETE | /api/todos/{id} | Delete a task          |\n| PUT    | /api/todos/{id}/ops |Toggle a task status|\n\n### 📁 Categories\n\n| Method | Endpoint             | Description                |\n|--------|----------------------|----------------------------|\n| GET    | /api/categories      | Get all categories         |\n| GET    | /api/categories/{id} | Get a specific category     |\n| POST   | /api/categories      | Create a new category       |\n| PUT    | /api/categories/{id} | Update a specific category  |\n| DELETE | /api/categories/{id} | Delete a category           |\n\n### 📊 Statistics\n\n| Method | Endpoint   | Description               |\n| ------ | ---------- | ------------------------- |\n| GET    | /api/stats | Weekly stats for the user |\n\n---\n\n## 🧪 Token Usage (in Postman)\n\nAfter logging in, copy the `token` from the response and use it in Postman:\n\n\u003e Authorization → Bearer Token → `your_token_here`\n\n---\n\n## 📄 API Documentation\n\n🧩 A Postman collection is included in the `docs` folder:\n`Todolist.postman_collection.json`\n\nYou can import it directly into Postman and test all endpoints.\n\n---\n\n## 📸 Screenshots\n\nAvailable in the `docs/screenshots/` directory:\n\nThe following screenshot shows the full list of available API endpoints in Postman.\n\u003cimg width=\"1366\" height=\"768\" alt=\"endpoints\" src=\"https://github.com/user-attachments/assets/fa5c1d97-7f9b-4e4c-87e8-adfb2a39a240\" /\u003e\n\nExample of login request and response\n\u003cimg width=\"1366\" height=\"768\" alt=\"login\" src=\"https://github.com/user-attachments/assets/01cab810-a724-4b27-b7bc-04dc50ef3b2e\" /\u003e\n\n---\n\n## 👩‍💻 Author\n\nTasnim Alshair – [GitHub Profile](https://github.com/tasnimalshair) [Linkedin Profile](https://www.linkedin.com/in/tasnim-alshair-aa11a4266/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftasnimalshair%2Fsmarttask-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftasnimalshair%2Fsmarttask-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftasnimalshair%2Fsmarttask-api/lists"}