/prestine-cars-backend

Prestine Cars Backend is a Rails API application for serving a frontend React application for renting cars. The backend API interacts with the frontend to allow users to sign up, select a city they are visiting and then select a car to hire from a list of available cars in the particular city

Primary LanguageRuby

Car Reservation App

This is a Ruby on Rails backend API application and its used for car rentals. The purpose of this application is to help users rent car when they move to new country or city. The Application allows an authenticated user to login to the system, get a list of all available cars and their cities, and book according to preference. The cars' data provides detailed information according to users preference and their budget based on different cities as well as countries. It also has dedicated pages to see a user's reservations and a reservation form.

Entity relationship diagram

Diagram

Front End repository

Link to the front end repository

Kanban board

Built With

  • Ruby version 3.1.2
  • Rails 7.0.3
  • PostgreSQL v 14.4
  • JWT Auth

Hosting services

  • The project(API) is hosted on Heruku
https://prestine-cars-backend.herokuapp.com/api-docs/

Configuration and set-up

  • Kindly ensure the following environments have been installed on you system:

    • Ruby
    • PostgreSQL
    • Rails
  • Cloning the repository

    • git@github.com:Prestine-Cars/prestine-cars-backend.git
      
  • Navigate to the project's root folder:

    • cd into projects folder
      
  • Install dependencies:

    • run bundle install
      
  • Create the database:

    • rails db:create
      
  • Run migrations:

    • rails db:migrate
      

Usage

  • Run the server on the specified port:
run rails s (port=3000)

Authors

👤 Benmuiruri

👤 Munezero Christian

👤 Munezero Christian

👤 Sirri Ryisa

🤝 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

  • Microverse,
  • Our coding partners,
  • Morning session team, and
  • Stand-up team members
  • Cars photo --unsplash

📝 License

This project is MIT licensed.