{"id":26235763,"url":"https://github.com/dxtaner/carbrandnodejsapi","last_synced_at":"2026-05-01T18:31:42.680Z","repository":{"id":167736873,"uuid":"602556049","full_name":"dxtaner/CarBrandNodejsApi","owner":"dxtaner","description":"Cars Api","archived":false,"fork":false,"pushed_at":"2023-08-30T23:25:25.000Z","size":102,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T03:17:44.760Z","etag":null,"topics":["api-rest","brand","cars","carsstore","nodejs","user"],"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/dxtaner.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":"2023-02-16T13:14:45.000Z","updated_at":"2023-06-16T23:58:33.000Z","dependencies_parsed_at":"2023-09-13T23:06:13.943Z","dependency_job_id":null,"html_url":"https://github.com/dxtaner/CarBrandNodejsApi","commit_stats":null,"previous_names":["dxtaner/carnodejsapi","dxtaner/carbrandnodejsapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2FCarBrandNodejsApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2FCarBrandNodejsApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2FCarBrandNodejsApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2FCarBrandNodejsApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dxtaner","download_url":"https://codeload.github.com/dxtaner/CarBrandNodejsApi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243330303,"owners_count":20274039,"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":["api-rest","brand","cars","carsstore","nodejs","user"],"created_at":"2025-03-13T03:17:46.912Z","updated_at":"2026-05-01T18:31:42.622Z","avatar_url":"https://github.com/dxtaner.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nCars Express MongoDB API\n===================\n\nPrerequisites\n-------------\n\n*   Node.js installed on your machine.\n*   A MongoDB Atlas account or a local MongoDB server.\n\nSetup\n-----\n\n1.  Clone the repository or download the code.\n2.  Install the required dependencies by running the following command:\n\n    npm install\n\n3.  Open the \\`app.js\\` file and replace the \\`dbURL\\` variable with your MongoDB connection string. If you're using a local MongoDB server, the URL might look like \\`mongodb://localhost:27017/mydatabase\\`.\n\n*   Start the server using the following command:\n\n    node app.js\n\n*   The server will start running at \\`http://localhost:3000\\`. You can test it by accessing \\`http://localhost:3000/\\` in your browser, and you should see the message \"Hello!\".\n\nAPI Endpoints\n-------------\n\nThe API provides the following endpoints for managing cars, users, and brands:\n\n### Car Endpoints\n\n*   \\`GET /api/cars\\` - Get all cars.\n*   \\`GET /api/cars/:id\\` - Get a car by ID.\n*   \\`POST /api/cars\\` - Create a new car.\n\n### User Endpoints\n\n*   \\`GET /api/users\\` - Get all users.\n*   \\`GET /api/users/:id\\` - Get a user by ID.\n*   \\`POST /api/users\\register` - Create a new user.\n*   \\`POST /api/users\\login` - login a user.\n*   \\`PUT /api/users/:id\\` - Update a user by ID.\n*   \\`DELETE /api/users/:id\\` - Delete a user by ID.\n\n### Brand Endpoints\n\n*   \\`GET /api/brands\\` - Get all brands.\n*   \\`GET /api/brands/:id\\` - Get a brand by ID.\n*   \\`POST /api/brands\\` - Create a new brand.\n*   \\`PUT /api/brands/:id\\` - Update a brand by ID.\n*   \\`DELETE /api/brands/:id\\` - Delete a brand by ID.\n\nYou can use tools like Postman or cURL to send requests to these endpoints and manage the data.\n\nMake sure to handle errors and validations appropriately and provide proper error messages or responses to the API consumers.\n\nThat's it! You have successfully set up the Express MongoDB API server. You can now start using the API endpoints to manage cars, users, and brands in your MongoDB database.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxtaner%2Fcarbrandnodejsapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdxtaner%2Fcarbrandnodejsapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxtaner%2Fcarbrandnodejsapi/lists"}