{"id":23153096,"url":"https://github.com/amithasanamithasan/carstore","last_synced_at":"2026-04-07T07:02:47.621Z","repository":{"id":264457729,"uuid":"893386295","full_name":"amithasanamithasan/CarStore","owner":"amithasanamithasan","description":"Backend API Development for Car-Store ","archived":false,"fork":false,"pushed_at":"2025-09-13T06:19:57.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T12:26:00.539Z","etag":null,"topics":["apidevelopment","expressjs","javascript","mongodb","mongoose","nodejs","postman","typescript","validation"],"latest_commit_sha":null,"homepage":"https://car-store-tau-seven.vercel.app/","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/amithasanamithasan.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-24T10:04:11.000Z","updated_at":"2025-09-13T06:20:00.000Z","dependencies_parsed_at":"2024-12-17T19:29:33.922Z","dependency_job_id":"82a12fee-c59b-4e70-8775-c699b4e9cddd","html_url":"https://github.com/amithasanamithasan/CarStore","commit_stats":null,"previous_names":["amithasanamithasan/carstore"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amithasanamithasan/CarStore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amithasanamithasan%2FCarStore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amithasanamithasan%2FCarStore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amithasanamithasan%2FCarStore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amithasanamithasan%2FCarStore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amithasanamithasan","download_url":"https://codeload.github.com/amithasanamithasan/CarStore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amithasanamithasan%2FCarStore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31503394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"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":["apidevelopment","expressjs","javascript","mongodb","mongoose","nodejs","postman","typescript","validation"],"created_at":"2024-12-17T19:29:29.108Z","updated_at":"2026-04-07T07:02:47.603Z","avatar_url":"https://github.com/amithasanamithasan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Car Store B4A2V3  \n🛠️ Technology I Can Use\nBackend Development:\n\nNode.js\nExpress.js\nMongoose\nTypeScript\nPackage Management:\n\nAny npm packages that are required for my project\nAdditional Technologies:\n\nFeel free to incorporate any additional technologies that you deem necessary for my project.\n## Objective  \nDevelop an Express application with TypeScript, integrating MongoDB with Mongoose to manage a Car Store. Ensure data integrity using Mongoose schema validation.  \n\n---\nProject Setup:\nCreate an Express project with TypeScript.\nSet up a MongoDB database to store Cars and Orders.\nUse Mongoose for schema definition and data operations.\nImplement CRUD operations for both cars and orders.\n## Project Setup  \n1. **Create an Express project with TypeScript**  \n   - Set up the project using TypeScript for type safety.  \n\n2. **Set up a MongoDB database**  \n   - Store data for Cars and Orders.  \n\n3. **Use Mongoose for schema definition and data operations**  \n   - Define schemas for `Cars` and `Orders`.  \n\n4. **Implement CRUD operations for Cars and Orders**  \n   - Create RESTful APIs for managing Cars and Orders.  \n\n---\n\n## Models  \n\n### Car Model  \n- **Fields**:  \n  - `brand` (string): Manufacturer (e.g., Toyota, BMW).  \n  - `model` (string): Model of the car (e.g., Camry, Focus).  \n  - `year` (number): Year of manufacture.  \n  - `price` (number): Price of the car.  \n  - `category` (string): Enum - `Sedan`, `SUV`, `Truck`, `Coupe`, `Convertible`.  \n  - `description` (string): Features description.  \n  - `quantity` (number): Available quantity.  \n  - `inStock` (boolean): Stock status.  \n\n### Order Model  \n- **Fields**:  \n  - `email` (string): Customer email.  \n  - `car` (ObjectId): Car ID (reference).  \n  - `quantity` (number): Quantity ordered.  \n  - `totalPrice` (number): Calculated as car price * quantity.  \n\n---\n\n## API Endpoints  \n\n### 1. Create a Car  \n- **Endpoint**: `/api/cars`  \n- **Method**: `POST`  \n- **Request Body**:  \n  ```json\n  {\n    \"brand\": \"Toyota\",\n    \"model\": \"Camry\",\n    \"year\": 2024,\n    \"price\": 25000,\n    \"category\": \"Sedan\",\n    \"description\": \"A reliable family sedan with modern features.\",\n    \"quantity\": 50,\n    \"inStock\": true\n  }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famithasanamithasan%2Fcarstore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famithasanamithasan%2Fcarstore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famithasanamithasan%2Fcarstore/lists"}