Skip to content

This project is made for the reservation of Dream cars. If you're preparing for a special day/event and you want a cool car for it this website is the best place for you. If you have a luxurious car and want to make some extra money from it, you can add that to our website and others will be able to reserve it!

License

Notifications You must be signed in to change notification settings

Arturgouveia1970/car-rental-backend

Repository files navigation

Car Rental Backend

Car Rental Backend is a rails backend application for booking Cars. This application serves as API endpoints for the frontend users to load, create, and delete Cars, as well as make reservations. Users need to sign up and/or sign in to access the API endpoints. They can sign up or sign in using the API endpoints.

Schema

Front-End Repository

Car Rental Front-end

Kanban Board

Kanban Board

Author

👤 Artur

Arturgouveia1970

@Arturgouveia10

Artur Gouveia

Built With

  • Major languages (Ruby)
  • Framworks (Ruby on Rails)
  • Testing library (Rspec)
  • API docs (Rswag)

Live version

Render

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

  • A text editor(preferably Visual Studio Code)

Install

  • Ruby
  • Ruby on Rails
  • PostgresSQL

Using it Locally

  • Clone the project
git clone https://github.com/Arturgouveia1970/car-rental-backend.git
cd car-rental-backend

Setup

Add your username & password in database.yml file:

username: <your_username>
password: <your_password>

Specify your ruby version if different from mine

ruby 'Your_ruby_version'

Install gems with:

bundle install

Setup database with:

rails db:create
rails db:migrate
rails db:seed

Usage

Start server with:

rails server -p 3000

Visit https://localhost:3000/ in your browser.

Run tests

Install npm with:

npm install

Install rspec with:

bundle install

and

rails generate rspec:install

run the test with:

rspec spec

Open API documentation

rails rswag:specs:swaggerize

Visit https://localhost:3000/api-docs in your browser.

Visit And Open Files

Visit Repo

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • We acknowledge with appreciation the original design provided by Murat Korkmaz on Behance.
  • Inspiration: Microverse.

📝 License

This project is MIT licensed.

About

This project is made for the reservation of Dream cars. If you're preparing for a special day/event and you want a cool car for it this website is the best place for you. If you have a luxurious car and want to make some extra money from it, you can add that to our website and others will be able to reserve it!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published