{"id":22170835,"url":"https://github.com/melitus/car-booking-api","last_synced_at":"2026-04-20T03:03:40.814Z","repository":{"id":125424486,"uuid":"315574907","full_name":"melitus/car-booking-api","owner":"melitus","description":"This car booking API will allow users to book for cars and view also previously booked cars filtered by users. User needs to be an authenticated user to book a car, get  all cars or get previous booked cars","archived":false,"fork":false,"pushed_at":"2021-06-23T17:48:04.000Z","size":295,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T22:27:18.876Z","etag":null,"topics":["express","javascript","nodej","postgresql","sequelize"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/melitus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-11-24T09:02:35.000Z","updated_at":"2023-12-28T15:25:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c7483b0-34bc-4f5c-82e3-6cd1730b70a7","html_url":"https://github.com/melitus/car-booking-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melitus%2Fcar-booking-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melitus%2Fcar-booking-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melitus%2Fcar-booking-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melitus%2Fcar-booking-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/melitus","download_url":"https://codeload.github.com/melitus/car-booking-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245319827,"owners_count":20596046,"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":["express","javascript","nodej","postgresql","sequelize"],"created_at":"2024-12-02T06:56:20.707Z","updated_at":"2026-04-20T03:03:35.791Z","avatar_url":"https://github.com/melitus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Car Booking API 🛡️\n\n# Tools\n\n- NodeJS\n- Express\n- Sequelize\n- PostgreSQL\n\n## Getting Started\n\nThe easiest way to get started is to clone the repository:\n\n# clone the repository\n\n```\ngit clone https://github.com/melitus/car-booking-api.git\n```\n\n# Change directory\n\n```\ncd car-booking-api\n```\n\n# Install NPM dependencies\n\n```\nyarn install\n```\n\n# start the server\n\n```\nyarn run dev\n```\n\nNote: It is recommended to install nodemon for livereloading - It watches for any changes in your node.js app and automatically restarts the server\n\n# Deployment\n### Deployment to Heroku\n\n\u003cimg src=\"https://upload.wikimedia.org/wikipedia/en/a/a9/Heroku_logo.png\" width=\"200\"\u003e\n\n- Download and install [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli#download-and-install)\n- In a terminal, run `heroku login` and enter your Heroku credentials\n- From *your app* directory run `heroku create`\n- Use the command `heroku config:set KEY=val` to set the different environment variables (KEY=val) for your application (i.e.  `heroku config:set BASE_URL=[heroku App Name].herokuapp.com` etc.)\n\n- Do `git add .`\n- Do `git commit -m\" reason for commit\"`\n- Lastly, do `git push heroku master`.\n\nPlease note that you may also use the [Herko Dashboard](https://dashboard.heroku.com) to set or modify the configurations for your application.\n\n# View live demo and test with any api\nI used postman to test the api.\nTo use postman, go to the project doc folder and import the docs file into your postman client to ease the testing\n\n\n### \u003ca href=\"https://car-booking-backend.herokuapp.com/v1/api\"\u003eLIVE DEMO\u003c/a\u003e\n\n## User Endpoint\n - Login - `https://car-booking-backend.herokuapp.com/v1/api/user/login`\n - Register - `https://car-booking-backend.herokuapp.com/v1/api/user/register`\n\n## Car Endpoints\n\n- Get all cars - `https://car-booking-backend.herokuapp.com/v1/api/booking?pagesize=10\u0026pagenumber=1`\n\n- Book a car - `https://car-booking-backend.herokuapp.com/v1/api/booking`\n\n- Get previous booking filtered by user - `https://car-booking-backend.herokuapp.com/v1/api/booking/24d551b9-6845-443a-ba9e-de18dd0b4fec/previous?pagesize=10\u0026pagenumber=1`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelitus%2Fcar-booking-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelitus%2Fcar-booking-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelitus%2Fcar-booking-api/lists"}