{"id":17854740,"url":"https://github.com/wirisungs/tpexpress-driver-server","last_synced_at":"2026-05-20T14:34:03.946Z","repository":{"id":258750482,"uuid":"867540299","full_name":"wirisungs/tpexpress-driver-server","owner":"wirisungs","description":"backend for tpexpress driver","archived":false,"fork":false,"pushed_at":"2024-11-28T16:22:55.000Z","size":504,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T13:52:12.600Z","etag":null,"topics":["backend","crud-api","express-js","microservice"],"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/wirisungs.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":"2024-10-04T09:00:45.000Z","updated_at":"2024-11-26T13:28:58.000Z","dependencies_parsed_at":"2024-10-27T14:03:41.001Z","dependency_job_id":"ececb8a4-97f9-4e46-9704-e91e75ac9b6c","html_url":"https://github.com/wirisungs/tpexpress-driver-server","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":0.04166666666666663,"last_synced_commit":"06f530c5f12b8603f2d9692b6b9bc1b1997b4c2a"},"previous_names":["wirisungs/tpexpress-driver-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wirisungs/tpexpress-driver-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wirisungs%2Ftpexpress-driver-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wirisungs%2Ftpexpress-driver-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wirisungs%2Ftpexpress-driver-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wirisungs%2Ftpexpress-driver-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wirisungs","download_url":"https://codeload.github.com/wirisungs/tpexpress-driver-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wirisungs%2Ftpexpress-driver-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265345230,"owners_count":23750572,"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":["backend","crud-api","express-js","microservice"],"created_at":"2024-10-28T01:04:02.265Z","updated_at":"2026-05-20T14:33:58.907Z","avatar_url":"https://github.com/wirisungs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TPExpress Driver Server\n\nTPExpress Driver Server is a Node.js application for managing logistics operations on the driver side, including order creation by customers and order acceptance by drivers.\n\n## Prerequisites\n\n- Node.js (v14.x or higher)\n- npm (v6.x or higher)\n- MongoDB\n\n## Installation\n\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/yourusername/tpexpress-driver-server.git\n   cd tpexpress-driver-server\n   ```\n2. Install dependencies:\n   ```sh\n   npm install\n   ```\n3. Create a `.env` file in the root directory and add your MongoDB URI and other environment variables:\n   ```sh\n   MONGO_URI=mongodb+srv://\u003cusername\u003e:\u003cpassword\u003e@\u003ccluster-url\u003e/\u003cdatabase\u003e?retryWrites=true\u0026w=majority\n   JWT_SECRET=your_secret_key\n   PORT=3000\n   ```\n\n## Running the Project\n\n1. Start the server:\n   ```sh\n   npm run dev\n   ```\n2. The server will be running on `http://localhost:3000`.\n\n## Middleware\n\n- **Body Parser**: Parses JSON request bodies.\n- **Logging Middleware**: Logs the HTTP method and URL of each request.\n- **Error Handling Middleware**: Catches and handles errors, returning a 500 status code with a generic error message.\n\n## API Endpoints\n\n### Orders\n\n- **GET /orders**: Retrieve all orders.\n- **GET /orders/:id**: Retrieve a specific order by ID.\n- **POST /orders**: Create a new order.\n- **PUT /orders/:id**: Update a specific order by ID.\n- **DELETE /orders/:id**: Delete a specific order by ID.\n\n### Drivers\n\n- **POST /drivers**: Register a new driver.\n- **GET /drivers**: Retrieve all drivers.\n- **GET /drivers/:id**: Retrieve a specific driver by ID.\n- **PUT /drivers/:id**: Update a specific driver by ID.\n- **DELETE /drivers/:id**: Delete a specific driver by ID.\n\n### Authentication\n\n- **POST /auth/login**: Authenticate a driver and return a JWT.\n- **POST /auth/register**: Register a new driver and return a JWT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwirisungs%2Ftpexpress-driver-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwirisungs%2Ftpexpress-driver-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwirisungs%2Ftpexpress-driver-server/lists"}