Emmanuelaaron / carBooking

This is a web app that enables users to book an appointment to try their dream cars
1 stars 1 forks source link
rails-api reactjs redux

Car Booking Website

An app was made to book a car to test it before you buy it. The front end was made with react and redux, and the back end was made with rails. The whole page is connected by using API.

Our main features are:

screenshot screenshot screenshot screenshot screenshot

kanban board

Built With

Deployment Live Demo

Deployed with Heroku

Getting Started

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

Prerequisites

Install

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

Now to run the server you need to run the rails server and the development server. To do that first type on the terminal:

rails s

Now on a new terminal type:

npm run dev

Now got to localhost You will see the login page first.

API usage

The backed is made with ruby on rails and this works as an API service alone. To use it you need to either create an account or log in using:

localhost:3000/api/v1/newuser
localhost:3000/api/v1/login

You only need to send a username using the body and the API will return the token, you need to save this token for you to use any of the other remaining features on the API server.

We also include a home API code on:

localhost:3000/api/v1/home

This will return all the cars added to the database.

To create new reservations you will use the API:

localhost:3000/api/v1/reservations/new

You are only required to send:

To get all the cars again and cities at the same time you can use the API:

localhost:3000/api/v1/carsNcities

To add new car use:

localhost:3000/api/v1/newcar

This requires:

Testing

bundle exec rspec

Number of team members: 3

Authors 👤

👤 Emmanuel Isabirye

👨‍💻 *David Alvarez

👨‍💻 Jose Alberto Arriaga Ramos

🤝 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

📝 License

This project is MIT licensed.