{"id":29395220,"url":"https://github.com/arazumut/tradesmanmanagement","last_synced_at":"2026-05-08T00:35:55.939Z","repository":{"id":303066258,"uuid":"1014288309","full_name":"arazumut/TradesmanManagement","owner":"arazumut","description":"Tradesman Management System","archived":false,"fork":false,"pushed_at":"2025-07-05T12:39:06.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-05T13:58:45.410Z","etag":null,"topics":["api","jwt","jwt-authentication","node","nodejs","nodemon","sqlite"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arazumut.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-05T12:20:38.000Z","updated_at":"2025-07-05T12:39:09.000Z","dependencies_parsed_at":"2025-07-05T16:47:22.482Z","dependency_job_id":null,"html_url":"https://github.com/arazumut/TradesmanManagement","commit_stats":null,"previous_names":["arazumut/tradesmanmanagement"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arazumut/TradesmanManagement","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arazumut%2FTradesmanManagement","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arazumut%2FTradesmanManagement/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arazumut%2FTradesmanManagement/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arazumut%2FTradesmanManagement/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arazumut","download_url":"https://codeload.github.com/arazumut/TradesmanManagement/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arazumut%2FTradesmanManagement/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264572222,"owners_count":23630204,"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":["api","jwt","jwt-authentication","node","nodejs","nodemon","sqlite"],"created_at":"2025-07-10T11:27:14.855Z","updated_at":"2026-05-08T00:35:52.842Z","avatar_url":"https://github.com/arazumut.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tradesman Order \u0026 Management System\n\nA comprehensive platform connecting local businesses with customers through a digital ordering system. This project includes an admin panel for business owners and an API for mobile applications.\n\n![Node.js](https://img.shields.io/badge/Node.js-43853D?style=for-the-badge\u0026logo=node.js\u0026logoColor=white)\n![Express.js](https://img.shields.io/badge/Express.js-404D59?style=for-the-badge)\n![SQLite](https://img.shields.io/badge/SQLite-07405E?style=for-the-badge\u0026logo=sqlite\u0026logoColor=white)\n![JWT](https://img.shields.io/badge/JWT-000000?style=for-the-badge\u0026logo=JSON%20web%20tokens\u0026logoColor=white)\n![Socket.io](https://img.shields.io/badge/Socket.io-010101?\u0026style=for-the-badge\u0026logo=Socket.io\u0026logoColor=white)\n\n## Features\n\n### User Management\n- Multiple user roles: Admin, Tradesman (Business Owner), Customer\n- JWT-based authentication system\n- Secure password handling\n\n### Store Management\n- Create, edit, and delete stores\n- Assign tradesmen to stores\n- Manage store open/closed status\n\n### Product Management\n- Full CRUD operations for products (name, description, price, stock, image)\n- Product categorization\n- Image upload functionality\n\n### Order System\n- Customers can create orders via API\n- Tradesmen receive and process orders\n- Order status tracking:\n  - Pending\n  - Preparing\n  - On the way\n  - Delivered\n  - Cancelled\n\n### Real-time Notifications\n- Socket.io integration for real-time updates\n- Notifications for new orders and status changes\n\n### Reporting\n- Daily order count and revenue\n- Weekly/monthly order statistics\n- Most sold products analysis\n\n### Admin Features\n- View all stores and users\n- Ban problematic users\n- System-wide management capabilities\n\n## Tech Stack\n\n- **Backend**: Node.js, Express.js\n- **Database**: SQLite with Sequelize ORM\n- **Authentication**: JWT (JSON Web Tokens)\n- **Real-time**: Socket.io\n- **API Documentation**: Swagger / OpenAPI\n- **File Upload**: Multer\n\n## Installation\n\n1. Clone the repository:\n   ```\n   git clone https://github.com/yourusername/tradesman-order-management.git\n   cd tradesman-order-management\n   ```\n\n2. Install dependencies:\n   ```\n   npm install\n   ```\n\n3. Set up environment variables (create a .env file):\n   ```\n   PORT=3000\n   JWT_SECRET=your_jwt_secret\n   NODE_ENV=development\n   DB_FORCE=false\n   ```\n\n4. Seed the database:\n   ```\n   npm run seed\n   ```\n\n5. Start the server:\n   ```\n   npm start\n   ```\n\n6. For development with auto-restart:\n   ```\n   npm run dev\n   ```\n\n## API Documentation\n\nOnce the server is running, you can access the API documentation at:\n```\nhttp://localhost:3000/api-docs\n```\n\n## Default Login Credentials\n\n### Admin User\n- Email: admin@tradesman.com\n- Password: admin123\n\n### Tradesman User\n- Email: esnaf@tradesman.com\n- Password: esnaf123\n\n### Customer User\n- Email: musteri@tradesman.com\n- Password: musteri123\n\n## Project Structure\n\n```\n.\n├── public/            # Static files (HTML, CSS, JS)\n├── src/\n│   ├── config/        # Database and app configuration\n│   ├── controllers/   # Request handlers\n│   ├── middleware/    # Custom middleware\n│   ├── models/        # Database models\n│   ├── routes/        # API routes\n│   ├── utils/         # Utility functions\n│   │   └── seeders/   # Database seeders\n│   └── index.js       # Application entry point\n├── uploads/           # Uploaded files\n└── package.json       # Project dependencies\n```\n\n## License\n\nApache 2.0\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farazumut%2Ftradesmanmanagement","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farazumut%2Ftradesmanmanagement","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farazumut%2Ftradesmanmanagement/lists"}