{"id":25770773,"url":"https://github.com/rza-o/gigbite-dashboard-fullstack-server","last_synced_at":"2026-04-06T08:01:12.721Z","repository":{"id":278283556,"uuid":"923620556","full_name":"Rza-O/gigbite-dashboard-fullstack-server","owner":"Rza-O","description":"The server-side implementation of GigBite, a micro-task and earning platform that bridges workers and buyers for task-based collaborations.","archived":false,"fork":false,"pushed_at":"2025-02-19T00:45:49.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-18T21:43:29.683Z","etag":null,"topics":["express","jwt","mongodb","nodejs","stripe"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Rza-O.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-01-28T15:20:35.000Z","updated_at":"2025-02-19T00:45:52.000Z","dependencies_parsed_at":"2025-06-18T21:39:25.034Z","dependency_job_id":"8b834009-2689-41fb-a89c-34a033d83f03","html_url":"https://github.com/Rza-O/gigbite-dashboard-fullstack-server","commit_stats":null,"previous_names":["rza-o/gigbite-dashboard-fullstack-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rza-O/gigbite-dashboard-fullstack-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rza-O%2Fgigbite-dashboard-fullstack-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rza-O%2Fgigbite-dashboard-fullstack-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rza-O%2Fgigbite-dashboard-fullstack-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rza-O%2Fgigbite-dashboard-fullstack-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rza-O","download_url":"https://codeload.github.com/Rza-O/gigbite-dashboard-fullstack-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rza-O%2Fgigbite-dashboard-fullstack-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31464101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"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":["express","jwt","mongodb","nodejs","stripe"],"created_at":"2025-02-27T02:37:08.625Z","updated_at":"2026-04-06T08:01:12.700Z","avatar_url":"https://github.com/Rza-O.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GigBite Server\n\nThe server-side implementation of **GigBite**, a micro-task and earning platform that bridges workers and buyers for task-based collaborations. The server is built with Node.js, Express.js, and MongoDB, offering secure and scalable APIs to manage tasks, payments, notifications, and user interactions.\n\n\n\n## Features\n\n### **API Overview**\n- RESTful APIs for buyers, workers, and admin functionalities.\n- Endpoints secured with JWT-based authentication.\n- Role-based access control (Admin, Buyer, Worker).\n\n### **Authentication**\n- JWT for secure session handling.\n- Middleware for verifying tokens and roles.\n\n### **Buyer Features**\n- Add, update, and delete tasks.\n- Approve or reject task submissions.\n- Manage payments via Stripe integration.\n\n### **Worker Features**\n- Browse available tasks.\n- Submit work for approval.\n- View total earnings and pending submissions.\n\n### **Admin Features**\n- Manage all users (update roles, remove users).\n- Approve withdrawal requests.\n- View platform-wide statistics, including total users, coins, and payments.\n\n### **Notification System**\n- Notifications triggered on task updates, payment approvals, and submission approvals/rejections.\n- Notifications stored in MongoDB and retrieved dynamically.\n\n### **Payment System**\n- Stripe-based payment integration for coin purchases.\n- Payment history stored and retrievable for buyers.\n- Withdrawal requests and approval by admin.\n\n\n\n## Installation\n\n### Prerequisites\nEnsure you have the following installed:\n- Node.js\n- npm or yarn\n- MongoDB\n\n### Steps\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/your-username/gigbite-server.git\n   ```\n\n2. Navigate to the project directory:\n   ```bash\n   cd gigbite-server\n   ```\n\n3. Install dependencies:\n   ```bash\n   npm install\n   # or\n   yarn install\n   ```\n\n4. Configure environment variables:\n   Create a `.env` file in the root directory and add the following:\n   ```env\n   DB_USER=mongodb_username\n   DB_PASS=your_mongodb_password\n   ACCESS_TOKEN_SECRET=jwt_token_here\n   PAYMENT_GATEWAY_SECRET=your_stripe_secret_key\n   ```\n\n5. Start the server:\n   ```bash\n   npm run start\n   ```\n\n6. The server will run at:\n   ```\n   http://localhost:8000\n   ```\n\n\n## Dependencies\n\nBelow is the list of dependencies used in the project:\n\n- **Core**:\n  - `express`: ^4.18.2\n  - `dotenv`: ^16.0.3\n\n- **Authentication**:\n  - `jsonwebtoken`: ^9.0.0\n  \n- **Database**:\n  - `mongodb`: ^5.6.0\n\n- **Payment Integration**:\n  - `stripe`: ^11.17.0\n\n- **Utilities**:\n  - `morgan`: ^1.10.0\n\n\n## Folder Structure\n\n```plaintext\n├── .env               # Environment variables\n├── index.js          # Server entry point\n└── package.json       # Dependencies and scripts\n```\n\n\n\n## Key Endpoints\n\n### **Authentication**\n- **POST** `//users/:email` - Register a new user.\n- **POST** `/jwt` - Log in a user and generate a JWT.\n\n### **Buyer Features**\n- **POST** `/tasks` - Add a new task.\n- **GET** `/buyer-dashboard/stats/:email` - Get buyer stats (task count, pending workers, total payments).\n\n### **Worker Features**\n- **GET** `/tasks` - Get all available tasks.\n- **POST** `/my-submissions/:email` - Submit a task for approval.\n\n### **Admin Features**\n- **GET** `/admin/users` - Get all users.\n- **PATCH** `/admin/users/:id` - Update a user’s role.\n- **PATCH** `/admin/approval/:id` - Approve a withdrawal request.\n\n\n## Scripts\n\n- **Start Server**:\n  ```bash\n  npm run start\n  ```\n\n- **Development Mode**:\n  ```bash\n  npm run dev\n  ```\n\n\n## Author\n\nDeveloped by [Shah Reza](https://github.com/Rza-O). For any questions or feedback, feel free to reach out.\n\n\n## Feedback\n\nIf you encounter any issues or have suggestions for improvement, please open an issue in this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frza-o%2Fgigbite-dashboard-fullstack-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frza-o%2Fgigbite-dashboard-fullstack-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frza-o%2Fgigbite-dashboard-fullstack-server/lists"}