{"id":15476818,"url":"https://github.com/mahammad-mostafa/tesla-booking-back-end","last_synced_at":"2026-02-13T07:33:24.963Z","repository":{"id":218136402,"uuid":"745219064","full_name":"mahammad-mostafa/tesla-booking-back-end","owner":"mahammad-mostafa","description":"This is the backend of the capstone project of the full stack module in the Microverse program. Rails is configured as an API with PostgreSQL database.","archived":false,"fork":false,"pushed_at":"2024-02-23T20:40:29.000Z","size":386,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"development","last_synced_at":"2025-04-10T12:48:00.510Z","etag":null,"topics":["api","api-rest","backend-api","gitflow-workflow","json-api","microverse","microverse-projects","microverse-rails-capstone","microverse-students","mvc-architecture","postgresql","rails","rails-api","relational-databases","rubocop","ruby","ruby-on-rails"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mahammad-mostafa.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":"2024-01-18T21:46:16.000Z","updated_at":"2024-02-02T04:24:43.000Z","dependencies_parsed_at":"2024-01-24T00:31:38.887Z","dependency_job_id":"c043edc3-ae17-4601-8e82-af3770c7df8e","html_url":"https://github.com/mahammad-mostafa/tesla-booking-back-end","commit_stats":null,"previous_names":["mahammad-mostafa/tesla-booking-back-end"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mahammad-mostafa/tesla-booking-back-end","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahammad-mostafa%2Ftesla-booking-back-end","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahammad-mostafa%2Ftesla-booking-back-end/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahammad-mostafa%2Ftesla-booking-back-end/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahammad-mostafa%2Ftesla-booking-back-end/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahammad-mostafa","download_url":"https://codeload.github.com/mahammad-mostafa/tesla-booking-back-end/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahammad-mostafa%2Ftesla-booking-back-end/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29398550,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"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":["api","api-rest","backend-api","gitflow-workflow","json-api","microverse","microverse-projects","microverse-rails-capstone","microverse-students","mvc-architecture","postgresql","rails","rails-api","relational-databases","rubocop","ruby","ruby-on-rails"],"created_at":"2024-10-02T03:41:17.525Z","updated_at":"2026-02-13T07:33:24.946Z","avatar_url":"https://github.com/mahammad-mostafa.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/ITurres/tesla-booking-front-end/blob/development/public/tesla-red-logo.png\"\n      alt=\"tesla logo\"\n      width=\"170\"\n      height=\"auto\" /\u003e\n    \u003ch2\u003e\u003cb\u003eTesla | Book a Ride App\u003c/b\u003e\u003c/h2\u003e\n\u003c/div\u003e\n\n---\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\n# 📗 Table of Contents\n\n- [📖 Tesla Booking Backend](#-about-project-)\n  - [🛠 Built With](#-built-with-)\n    - [Key Features](#-key-features-)\n    - [Documentation](#-documentation-)\n      - [🚀 Live Demo](#-live-demo-)\n      - [Link to Frontend](#-link-to-frontend-)\n  - [💻 Getting Started](#-getting-started-)\n  - [👥 Authors](#-authors-)\n  - [🔭 Future Features](#-future-features-)\n  - [🤝 Contributing](#-contributing-)\n  - [⭐️ Show your support](#️-show-your-support-)\n  - [🙏 Acknowledgments](#-acknowledgments-)\n  - [📝 License](#-license-)\n\n\u003c!-- PROJECT DESCRIPTION --\u003e\n\n## About the project \u003ca name=\"-about-project\"\u003e\u003c/a\u003e\n\n# 📖 Tesla Booking Backend \u003ca name=\"-about-project-\"\u003e\u003c/a\u003e\n\n**Tesla Booking Backend** is the rails only api app for the full stack tesla booking app. It provides all the endpoints for the [frontend](https://github.com/ITurres/tesla-booking-front-end) to consume. Here the logic for the app is implemented.\n\n- [Tesla Booking Frontend Kanban Board](https://github.com/users/ITurres/projects/6/views/1)\n  \u003cimg src=\"./Backend.png\"\u003e\n- [Tesla Booking Backend Kanban Board](https://github.com/users/mahammad-mostafa/projects/4)\n  \u003cimg src=\"./Frontend.png\"\u003e\n\n### **Team Members**\n\n- Demes Abera Ameneshoa - GitHub: [@demesameneshoa](https://github.com/demesameneshoa)\n- Fatema Nazari [@78fatemanazari](https://github.com/78fatemanazari)\n- Arthur Emanuel G. Iturres [@ITurres](https://github.com/ITurres)\n- Mahammad Mostafa [@mahammad-mostafa](https://github.com/mahammad-mostafa)\n\n### **ER Diagram**\n\nThe API is designed as per the ER Diagram shown below which dictates the association of models and their relationships.\n\n\u003cimg src=\"./ER Diagram.png\"\u003e\n\n## 🛠 Built With \u003ca name=\"built-with\"\u003e\u003c/a\u003e\n\n### Tech Stack \u003ca name=\"tech-stack\"\u003e\u003c/a\u003e\n\n\u003cul\u003e\n  \u003cli\u003e\n    \u003ca href=\"https://www.ruby-lang.org/en/\"\u003e\n      \u003cimg src=\"https://skillicons.dev/icons?i=ruby\"/\u003e\n      Ruby\n    \u003c/a\u003e\n  \u003c/li\u003e\n  \u003cli\u003e\n    \u003ca href=\"https://rubyonrails.org/\"\u003e\n      \u003cimg src=\"https://skillicons.dev/icons?i=rails\"/\u003e\n      Rails\n    \u003c/a\u003e\n  \u003c/li\u003e\n  \u003cli\u003e\n    \u003ca href=\"https://www.postgresql.org/\"\u003e\n      \u003cimg src=\"https://skillicons.dev/icons?i=postgresql\"/\u003e\n      PostgreSQL\n    \u003c/a\u003e\n  \u003c/li\u003e\n\u003c/ul\u003e\n  \n\u003c!-- Features --\u003e\n\n### Key Features \u003ca name=\"-key-features-\"\u003e\u003c/a\u003e\n\n- [x] **Ruby on Rails As an API**.\n- [x] **Postgres Database**.\n- [x] **API Routed to Provide Response for Requests**.\n- [x] **Git Version Control**.\n- [x] **User Authentication Managed by Devise**.\n- [x] **JWT Token as Authorization Key**.\n- [x] **Models Associations**.\n- [x] **API Documentation**.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## API Documentation \u003ca name=\"-documentation-\"\u003e\u003c/a\u003e\n\n- You can view the input json and response json formats and also you can interact with the API database to visualize the input and output flow of requests and responses.\n- [Api docs](https://tesla-booking-api-x2xe.onrender.com/api-docs)\n\n## Live Demo \u003ca name=\"-live-demo-\"\u003e\u003c/a\u003e\n\n- [API URL](https://tesla-booking-api-x2xe.onrender.com)\n\n## 🎨 Link to Frontend \u003ca name=\"link-to-frontend\"\u003e\u003c/a\u003e\n\n- [Frontend](https://github.com/ITurres/tesla-booking-front-end)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- GETTING STARTED --\u003e\n\n## 💻 Getting Started \u003ca name=\"getting-started\"\u003e\u003c/a\u003e\n\nTo get a local copy up and running, follow these steps.\n\n### Prerequisites\n\nIn order to run this project you need:\n\n```sh\n mkdir tesla-booking-api\n cd tesla-booking-api\n```\n\n### Setup\n\nClone this repository to your desired folder:\n\n- With SSH:\n\n```bash\n  cd my-folder\n  git clone git@github.com:mahammad-mostafa/tesla-booking-back-end.git\n```\n\n- With HTTPS:\n\n```bash\n  cd my-folder\n  git clone https://github.com/mahammad-mostafa/tesla-booking-back-end.git\n```\n\n- With GitHub CLI:\n\n```bash\n  cd my-folder\n  gh repo clone mahammad-mostafa/tesla-booking-back-end\n```\n\n### Database setup\n\nConnect to your local postgres database:\n\n```bash\n  Inside the config/database.yml file add your\n\n  POSTGRES_USER=\u003cusername\u003e\n  POSTGRES_PASSWORD=\u003cpassword\u003e\n\n```\n\n### Install\n\nInstall this project with:\n\n```bash\n  cd tesla-booking-back-end\n  bundle install\n  rails db:create - create the database\n  rails db:migrate - run pending migrations for the current environment.\n  rails db:seed\n```\n\n### Usage\n\nTo run the project, execute the following command:\n\n```bash\n  rails server - Starts the development server\n  rails console - Starts the interactive command line\n```\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- AUTHORS --\u003e\n\n## Authors \u003ca name=\"-authors-\"\u003e\u003c/a\u003e\n\n👤 **Demes Ameneshoa**\n\n- GitHub: [@demesameneshoa](https://github.com/demesameneshoa)\n- Twitter: [@demesabera](https://twitter.com/demesabera)\n- LinkedIn: [demesameneshoa](https://www.linkedin.com/in/demesameneshoa/)\n\n👤 **Fatema Nazari**\n\n- GitHub: [@78fatemanazari](https://github.com/78fatemanazari)\n- Twitter: [@fati_nazari78](https://twitter.com/fati_nazari78?s=31)\n- LinkedIn: [78fatemanazari](https://www.linkedin.com/in/78fatemanazari)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- FUTURE FEATURES --\u003e\n\n## 🔭 Future Features \u003ca name=\"future-features\"\u003e\u003c/a\u003e\n\n- [ ] Unit Tests\n- [ ] Add More Endpoints\n- [ ] Add Users Role Based Access\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- CONTRIBUTING --\u003e\n\n## 🤝 Contributing \u003ca name=\"contributing\"\u003e\u003c/a\u003e\n\nContributions, issues, and feature requests are welcome!\n\nFeel free to check the [issues page](https://github.com/mahammad-mostafa/tesla-booking-back-end/issues).\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- SUPPORT --\u003e\n\n## ⭐️ Show your support \u003ca name=\"support\"\u003e\u003c/a\u003e\n\nIf you like this project please leave a star 🤩\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- ACKNOWLEDGEMENTS --\u003e\n\n## 🙏 Acknowledgments \u003ca name=\"acknowledgements\"\u003e\u003c/a\u003e\n\nWe would like to acknowledge the Microverse community and the staff for their incredible support through out our journey.\n\n- [Microverse](https://www.microverse.org/)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- LICENSE --\u003e\n\n## 📝 License \u003ca name=\"license\"\u003e\u003c/a\u003e\n\nThis project is [MIT](./LICENSE) licensed.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahammad-mostafa%2Ftesla-booking-back-end","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahammad-mostafa%2Ftesla-booking-back-end","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahammad-mostafa%2Ftesla-booking-back-end/lists"}