{"id":15147308,"url":"https://github.com/andynur/rapid-express","last_synced_at":"2026-02-17T17:02:01.737Z","repository":{"id":257261548,"uuid":"857667176","full_name":"andynur/rapid-express","owner":"andynur","description":"Simple API server built with Bun, TypeScript, Express.js, and Prisma ORM with MySQL as the database.","archived":false,"fork":false,"pushed_at":"2024-09-16T14:24:55.000Z","size":176,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T03:53:52.533Z","etag":null,"topics":["bun","express","mysql","prisma","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/andynur.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-09-15T09:27:28.000Z","updated_at":"2024-09-16T14:24:59.000Z","dependencies_parsed_at":"2024-11-02T03:23:11.604Z","dependency_job_id":null,"html_url":"https://github.com/andynur/rapid-express","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"510f98c72faf44f061a342433dd3c8b8dafd7fe5"},"previous_names":["andynur/rapid-express"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andynur/rapid-express","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andynur%2Frapid-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andynur%2Frapid-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andynur%2Frapid-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andynur%2Frapid-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andynur","download_url":"https://codeload.github.com/andynur/rapid-express/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andynur%2Frapid-express/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29550822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T14:33:00.708Z","status":"ssl_error","status_checked_at":"2026-02-17T14:32:58.657Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bun","express","mysql","prisma","typescript"],"created_at":"2024-09-26T12:40:32.232Z","updated_at":"2026-02-17T17:02:01.702Z","avatar_url":"https://github.com/andynur.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rapid Express\n\nRapid Express is a simple API server built with **Bun**, **TypeScript**, **Express.js**, and **Prisma ORM** with **MySQL** as the database. This project follows a structured approach to developing scalable and efficient backend applications.\n\n## Features\n- **Authentication**: Provides token-based api authentication.\n- **User Management**: Provides CRUD operations for user management.\n- **Order Management**: Allows creating and managing orders, products, and customers.\n- **API Response Standardization**: Uses a helper function to standardize API responses.\n- **Error Handling**: Proper error handling with consistent JSON format.\n- **Pagination Support**: Supports pagination for listing resources.\n\n## Technology Stack\n- **Bun**: A fast all-in-one JavaScript runtime that replaces Node.js.\n- **TypeScript**: A strongly typed programming language that builds on JavaScript.\n- **Express.js**: A minimal and flexible Node.js web application framework.\n- **Prisma ORM**: A modern ORM for Node.js and TypeScript, used for database access.\n- **MySQL**: A popular relational database used for storing data.\n\n## Project Setup\n\n### Prerequisites\n- **Bun** installed on your system.\n- **MySQL** database running locally or remotely.\n\n### Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/andynur/rapid-express.git\n   cd rapid-express\n   ```\n\n2. Install dependencies using **Bun**:\n   ```bash\n   bun install\n   ```\n\n3. Set up your environment variables by creating a `.env` file in the root directory:\n   ```env\n   DATABASE_URL=\"mysql://root:yourpassword@localhost:3306/yourdatabase\"\n   ```\n\n4. Run Prisma migrations to set up the database:\n   ```bash\n   bun run prisma:migrate\n   ```\n\n5. Seed the database with initial data:\n   ```bash\n   bun run prisma:seed\n   ```\n\n### Running the Application\n\nTo start the server in **development mode** with auto-reloading:\n```bash\nbun run dev\n```\n\nTo start the server in **production mode**:\n```bash\nbun run start\n```\n\n### API Response Standardization\n\nThe application uses a helper function `apiResponse` to standardize API responses across all routes. Example response structure:\n\n```json\n{\n  \"status\": 200,\n  \"message\": \"Success\",\n  \"data\": {...},\n  \"errors\": null,\n  \"meta\": null\n}\n```\n\nFields like `errors` and `meta` are optional and will only appear if provided.\n\n### Error Handling\n\nErrors in the application are handled using a custom error handler and returned with a consistent format. For example:\n\n```json\n{\n  \"status\": 404,\n  \"message\": \"Resource not found\",\n  \"errors\": null\n}\n```\n\n### Running Tests\n\nTo run tests (if configured):\n```bash\nbun test\n```\n\n### Postman Documentation\n\nThe Postman collection for testing the API endpoints can be found at [Postman Documentation](https://documenter.getpostman.com/view/4776687/2sAXqp9j1T)\n\n### Original Project\nThis project is a fork of the [typescript-express-starter](https://github.com/ljlm0402/typescript-express-starter) repository. It has been customized to use [Bun](https://bun.sh/) for improved performance and a better developer experience\n\n### Contributing\n\nFeel free to fork this project, create issues, or submit pull requests to help improve **Rapid Express**.\n\n### License\n\nThis project is licensed under the [MIT License](https://opensource.org/licenses/MIT).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandynur%2Frapid-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandynur%2Frapid-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandynur%2Frapid-express/lists"}