Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abigiyaty/carrental-backend

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.
https://github.com/abigiyaty/carrental-backend

postgresql rspec ruby-on-rails

Last synced: about 1 month ago
JSON representation

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.

Awesome Lists containing this project

README

        

# 📗 Table of Contents

- [📗 Table of Contents](#-table-of-contents)
- [ Car-Rental ](#-car-rental-)
- [🛠 Built With ](#-built-with-)
- [Tech Stack ](#tech-stack-)
- [Key Features ](#key-features-)
- [💻 Getting Started ](#-getting-started-)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Install](#install)
- [Usage](#usage)
- [Run tests](#run-tests)
- [Author ](#author-)
- [🔭 Future Features ](#-future-features-)
- [🤝 Contributing ](#-contributing-)
- [⭐️ Show your support ](#️-show-your-support-)
- [📝 License ](#-license-)

# 📖 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

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

### Setup

Clone this repository to your desired folder:

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

### Install

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

```sh
1. git clone https://github.com/AbigiyaTY/carRental-Backend.git
2. cd carRental-Backend
3. code .
```
gem install bundler
```sh
1. bundler install
2. rails db:create db:migrate
```

### Usage

To run the project, execute the following command:

```sh
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**

* GitHub: [@AbigiyaTY](https://github.com/AbigiyaTY)
* Twitter: [@AbigiyaTY](https://twitter.com/AbigiyaTY)
* LinkedIn: [@AbigiyaTY](https://www.linkedin.com/in/AbigiyaTY)

(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](../../issues/).

(back to top)

## ⭐️ Show your support

If you like this project give it ⭐️.

(back to top)

## 📝 License

This project is [MIT](./MIT.md) licensed.

(back to top)