Skip to content

Backend REST API for a car rental application. It is written in Ruby on Rails and uses JWT for authentication. The API provides endpoints for creating, updating, and deleting cars, as well as for reserving and returning cars. It also provides an endpoint for getting the current status of a car.

Notifications You must be signed in to change notification settings

AbigiyaTY/carRental-Backend

Repository files navigation

📗 Table of Contents

📖 Car-Rental

  • Car Rental is a car rental application that used React for Front-End and Ruby on Rails for Back-End.
  • Car Rental Backend is Backend REST API for a car rental application. It is written in Ruby on Rails and uses JWT for authentication. The API provides endpoints for creating, updating, and deleting cars, as well as for reserving and returning cars. It also provides an endpoint for getting the current status of a car.

🛠 Built With

Tech Stack

Back-End
Database
Test

Key Features

  • Create, update, and delete cars
  • Reserve and return cars
  • Get the current status of a car
  • Authentication with JWT

(back to top)

💻 Getting Started

To get a local copy running the follow these steps.

Prerequisites

In order to run this project you need

 VS code editor
 Web browser(chrome Firefox Opera etc)
 gem install rails

Setup

Clone this repository to your desired folder:

  git clone https://github.com/AbigiyaTY/carRental-Backend.git

Install

In the terminal, go to your file directory and run this command.

  1. git clone https://github.com/AbigiyaTY/carRental-Backend.git
  2. cd carRental-Backend
  3. code .

gem install bundler

  1. bundler install
  2. rails db:create db:migrate

Usage

To run the project, execute the following command:

  rails server

Run tests

To install rspec, in the terminal kindly run this command

$ gem install rspec

To run tests, please run this command


For specific file

$ rspec ./spec/#{filename}.rb 

For the whole file

$ rspec 

(back to top)

Author

Abigiya Tadesse

(back to top)

🔭 Future Features

  • Improve security
  • Delploy the app
  • Add testes
  • Write documentation

(back to top)

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

If you like this project give it ⭐️.

(back to top)

📝 License

This project is MIT licensed.

(back to top)

About

Backend REST API for a car rental application. It is written in Ruby on Rails and uses JWT for authentication. The API provides endpoints for creating, updating, and deleting cars, as well as for reserving and returning cars. It also provides an endpoint for getting the current status of a car.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published