Skip to content

Motorbike Booking is a Rails back-end application that enables users to book Motorbikes. It provides API endpoints for the front end, allowing them to load, create, and delete Motorbikes, as well as make reservations. Users need to register or log in to access the API endpoints, which can be done via the same endpoints.

Notifications You must be signed in to change notification settings

Bria222/Motorbike-Booking-capstone-backend

Repository files navigation

Motorbike Booking Back-End

Motorbike Booking is a rails backend application for booking Motorbikes. This application serves as API endpoints for the frontend and users can load, create, and delete Motorbikes, as well as add reservations. Users need to sign up or sign in to access the API endponits. They can sign up or sign in using the API endponts.

Schema

Front-End Repository

Motorbike Booking Front-end

Kanban Board

Kanban Board

Intial State of Kanban Board

Initial Kanban Board

We are a group of five

  1. Member 1 - Brian
  2. Member 2 - Joseph
  3. Member 3 - Emmanuel
  4. Member 4 - Ghilain
  5. Member 5 - Olivier

Built With

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

Live version

[In progress]

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/Bria222/Motorbike-Booking-capstone-backend.git
cd Motorbike-Booking-capstone-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 http://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 http://localhost:3000/api-docs in your browser.

Visit And Open Files

Visit Repo

Authors

👤 Brian Nyachae

👤 Olivier

👤 Joseph

👤 Ghilain

👤 Emmanuel

🤝 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

Motorbike Booking is a Rails back-end application that enables users to book Motorbikes. It provides API endpoints for the front end, allowing them to load, create, and delete Motorbikes, as well as make reservations. Users need to register or log in to access the API endpoints, which can be done via the same endpoints.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages