DriveWise Backend
📗 Table of Contents
📖 About the Project- Frontend
- Kanban Board
💻 Getting Started👥 Authors🔭 Future Features🤝 Contributing⭐️ Show your support🙏 Acknowledgements📝 License
📖 DriveWise Backend
[DriveWise Backend] is a Ruby on Rails API that serves data to the DriveWise Frontend application. It is a RESTful API that allows users to create, read, update, and delete data from the database.
Frontend
- The link to the frontend repository of the app can be found here
Kanban Board
- The Kanban board can be found here
- Screenshot of the initial state of our Kanban board can be found here
🛠 Built With
Tech Stack
Framework
Database
Key Features
- User - Create, read, update, and delete users
- Car - Create, read, update, and delete cars
- Reaservation - Create, read, update, and delete reservations.
The API endpoints are:
Users
- GET /users
- GET /users/:id
- POST /users
- PATCH /users/:id
- DELETE /users/:id
Cars
- GET /cars
- GET /cars/:id
- POST /cars
- PATCH /cars/:id
- DELETE /cars/:id
Reservations
- GET /reservations
- GET /reservations/:id
- GET /users/:user_id/reservations
- GET /cars/:car_id/reservations
- POST /users/:user_id/reservations
- PATCH /users/:user_id/reservations/:id
- DELETE /users/:user_id/reservations/:id
🚀 Live Demo
💻 Getting Started
To get a local copy up and running, follow these steps.
Prerequisites
In order to run this project you need:
- Ruby
- Rails
- PostgreSQL
Setup
Clone this repository to your desired folder:
cd my-folder
git clone git@github.com:iamchristianani/drivewise-backend.git
Install
Install this project with:
cd drivewise-backend
bundle install
Setup database
Setup database with:
rails db:create
rails db:migrate
rails db:seed
Usage
To run the project, execute the following command:
rails server
To test the endpoints with swagger, visit:
http://localhost:3000/api-docs
Run tests
To run tests locally, run the following command:
rspec
👥 Authors
We have a total number of 4 team members, namely:
- GitHub: @yuvenalmash
- Twitter: @YuvenalNjoroge
- LinkedIn: Yuvenal Njoroge
- GitHub: @RoyJumah
- Twitter: @roy_issues
- LinkedIn: Roy Jumah
- GitHub: @iamchristianani
- Twitter: @kriznode
- LinkedIn: Christian Ani
- GitHub: @boo-shehab
- Twitter: @boo-shehab2000
- LinkedIn: @ahmed-al-ali-77b6a0246
🔭 Future Features
- [Authentication] - Add authentication to the API endpoints to allow only authorized users to access the data.
- [Authorization] - Add authorization for admin users to access the data.
🤝 Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
⭐️ Show your support
If you like this project, give it a
🙏 Acknowledgments
I would like to thank all the contributors to this project.
📝 License
This project is MIT licensed.