Book vehicle API back-end

  • A friendly api to book vehicle reservations

image image

LINK to front-end

  • This Project has a React Front-end you can work with

React front-end << open

Backend API LIVE

API LIVE

Built With

  • Ruby on Rails
  • Development set up
  • Rails API only
  • Devise authentication
  • Devise Simple Token Authentication
  • API Swagger documentation
  • Bullet N + 1 queries

Kanban Board

🥇 We are a group of 3 people:

  • @basem909
  • @kinginthenorthcodez
  • @Fatima-hub333

git clone https://github.com/Fatima-hub333/appointment-diary-backend

  • Move into project directory

cd hello-rails-back-end

Available Scripts

bundle install

rails server

Available Scripts to Run Test cases

Run following command gem install --no-document rspec -v '>=3.0, < 4.0' > rspec --force-color --format documentation Uses gem 'rspec-rails' gem 'shoulda-matchers' tests framworks.

Preparing your Application for Testing

  • Before you can run your tests you need to ensure that the test database structure is current. For this you can use the following rake commands:

$ rake db:migrate ... $ rake db:test:load

$ rails db:seed to seed the app database

  • Above rake db:migrate runs any pending migrations on the developemnt environment and updates db/schema.rb. rake db:test:load recreates the test database from the current db/schema.rb. On subsequent attempts it is a good to first run db:test:prepare as it first checks for pending migrations and warns you appropriately.

Tests using Rspec

  • rails db:test:prepare
  • rake db:migrate

Author

👤 kinginthenorthcodez

GitHub: @kinginthenorthcodez 🤝 Contributing

Author

👤 Bassem Shams

GitHub: @basem909 🤝 Contributing

Author

👤 Fatima Zahir

GitHub: @Fatima-hub333 🤝 Contributing

Contributions, issues, and feature requests are welcome

Note: To release latest 24-10-2022

Show your support

Give a ⭐️ if you like this project!

📝 License This project is MIT.