{"id":27611649,"url":"https://github.com/sajjad177/sql-assignment-8","last_synced_at":"2026-04-11T00:03:43.128Z","repository":{"id":288817559,"uuid":"969235008","full_name":"Sajjad177/SQL-Assignment-8","owner":"Sajjad177","description":"A backend API for managing bike servicing operations, supporting CRUD for customers, bikes, and service records.","archived":false,"fork":false,"pushed_at":"2025-04-20T15:18:20.000Z","size":8210,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T00:40:14.873Z","etag":null,"topics":["mysql","nodejs","postgresql","prisma-orm","typescript"],"latest_commit_sha":null,"homepage":"https://bike-management-delta.vercel.app","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/Sajjad177.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-04-19T17:35:41.000Z","updated_at":"2025-04-20T15:18:24.000Z","dependencies_parsed_at":"2025-04-23T00:50:15.530Z","dependency_job_id":null,"html_url":"https://github.com/Sajjad177/SQL-Assignment-8","commit_stats":null,"previous_names":["sajjad177/sql-assignment-8"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sajjad177/SQL-Assignment-8","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sajjad177%2FSQL-Assignment-8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sajjad177%2FSQL-Assignment-8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sajjad177%2FSQL-Assignment-8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sajjad177%2FSQL-Assignment-8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sajjad177","download_url":"https://codeload.github.com/Sajjad177/SQL-Assignment-8/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sajjad177%2FSQL-Assignment-8/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259835379,"owners_count":22918974,"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":["mysql","nodejs","postgresql","prisma-orm","typescript"],"created_at":"2025-04-23T00:39:52.185Z","updated_at":"2025-12-30T22:34:25.840Z","avatar_url":"https://github.com/Sajjad177.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚴‍♂ Bike Servicing Management Backend\n\n## 📝 Overview\n\nThis is a backend API for managing bike servicing tasks. You can add and manage customers, bikes, and service records. It also lets you assign services, track their status, and mark them as completed.\n\n## 🌐 Live Backend\n\n**[https://bike-servicing-management-chi.vercel.app](https://bike-management-delta.vercel.app)**\n\n\n## 🛠️ Tech Stack\n\n- **Node.js \u0026 Express.js**: Backend runtime and API framework  \n- **TypeScript**: Type-safe JavaScript  \n- **Prisma ORM**: Database management  \n- **PostgreSQL**: Relational database\n\n \n## ⚙️ Setup Guide\n\n## How to Clone and Run the Project Locally : \n\n1. **Clone the repository:**\n   - First, you need to clone and open your terminal and type:\n     ```bash\n     git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY\n     ```\n2. **Open files in VS Code:**\n   - After opening the **server-side** files in VS Code, install npm dependencies both file:\n     ```bash\n     npm install\n     ```\n4. **Environment setup:**\n     ```plaintext\n     DATABASE_URL=\"postgresql://\u003cuser\u003e:\u003cpassword\u003e@\u003chost\u003e:\u003cport\u003e/\u003cdatabase\u003e?schema=public\"\n     PORT=5000\n     NODE_ENV=development\n     ```\n5. **Access the server :**\n  - - Check the `package.json` and check whice command add there.\n    1. Live reloading for typescript code : \n    ```tarminal\n        npm run dev\n    ```\n    2. Open prisma Studio : \n    ```tarminal\n        \"studio\": npx prisma studio\n    ```\n    3. Runs the TypeScript compiler to transpile TypeScript files into JavaScript files : \n    ```tarminal\n        npm run build\n    ```\n6. **Run Migrations :**\n   ```plaintext\n     npx prisma migrate dev --name init\n   ```\n\n\n## 🔑 Key Features\n\n- 🧑‍💼 **Customer Management**: Create, read, update, and delete customer records  \n- 🏍️ **Bike Management**: Add new bikes and retrieve bike data  \n- 🔧 **Service Management**: Assign services, update progress, and mark services as complete  \n- ⏰ **Pending/Overdue Services**: Fetch services that are overdue by 7+ days or still pending  \n- 🚨 **Error Handling**: Unified and standardized API error responses for easier debugging  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsajjad177%2Fsql-assignment-8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsajjad177%2Fsql-assignment-8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsajjad177%2Fsql-assignment-8/lists"}