Git Product home page Git Product logo

carrental's Introduction

Backend CI Frontend CI open in vscode

BookCars is an open source car rental platform, supplier oriented, with a backend for managing car fleet and bookings, a frontend and a mobile app for car rental.

Features

  • Supplier management
  • Car fleet management
  • Booking management
  • Client management
  • Multiple payment methods
  • Multiple language support
  • Responsive backend and frontend
  • Native Mobile app for Android and iOS

Download

You can download the latest release from here.

Install

You can find installation instructions here.

Build Mobile App

You can find instructions here.

Run from Code

You can find instructions in the wiki to run BookCars from code.

Documentation

You can find documentation here.

Overview

In this section, you'll see the main pages of the frontend, the backend and the mobile app.

Frontend

From the frontend, the user can search for available cars, choose a car and checkout.

Below is the main page of the frontend where the user can choose a pickup and drop-off locations, dates and time booking, and search for available cars.

Frontend

Below is the search result of the main page where the user can choose a car for rental.

Frontend

Below is the checkout page where the user can set rental options and checkout. If the user is not registered, he can checkout and register at the same time. He will receive a confirmation and activation email to set his password if he is not registered yet.

Frontend

Below is the sign in page.

Frontend

Below is the sign up page.

Frontend

Below is page where the user can see and manage his bookings.

Frontend

Below is the page where the user can see a booking in detail.

Frontend

That's it. That's the main pages of the frontend.

Mobile App

From the mobile app, the user can search for available cars, choose a car and checkout.

The user can also receive push notifications, if the status of his booking is updated.

Below is the main page of the mobile app where the user can choose pickup and drop-off locations, dates and time booking, and search for available cars.

Below is the search result of the main page where user can choose a car for rental and checkout pages.

Below are sign in and sign up pages.

Below are the pages where the user can see and manage his bookings.

Below are the pages where the user can update his profile information, change his password and see his notifications.

That's it for the main pages of the mobile app.

Backend

BookCars is supplier oriented. This means that there are three types of users:

  • Admin: He has full access to backend. He can do everything.
  • Supplier: He has restricted access to backend. He can only manage his cars and bookings.
  • User: He has only access to frontend and mobile app. He cannot access the backend.

BookCars is designed to work with multiple suppliers. Each supplier can manage his car fleet and bookings from the backend. BookCars can also work with only one supplier too.

From the backend, the admin user can create and manage suppliers, cars, locations, users and bookings.

When the admin user creates a new supplier, the supplier will receive an automatic email for creating his account to access the backend so he can manage his car fleet and bookings.

Below is the sign in page of the backend.

Backend

Below is the dashboard page of the backend where admins and suppliers can see and manage bookings.

Backend

Below is the page where car fleet is displayed and can be managed.

Backend

Below is the page where admins and suppliers can create new cars by providing an image and car info. 

Backend

Below is the page where admins and suppliers can edit cars.

Backend

Below is the page where admins can manage platform users.

Backend

Below is the page where to edit bookings.

Backend

That's it. That's the main pages of the backend.

Architecture

This section describes the software architecture of BookCars including the API, the frontend, the mobile app and the backend.

BookCars API is built with Node.js, Express and MongoDB.

BookCars backend and frontend are built with Node.js, React and MUI.

BookCars mobile app is built with React Native and Expo.

API

BookCars API exposes all BookCars functions needed for the backend, the frontend and the mobile app. The API follows the MVC design pattern. JWT is used for authentication. There are some functions that need authentication and others that does not need authentication.

  • ./api/models/ folder contains MongoDB models.
  • ./api/routes/ folder contains Express routes.
  • ./api/controllers/ folder contains controllers.
  • ./api/middlewares/ folder contains middlewares.
  • ./api/server.js is the main server where database connection is established and routes are loaded.
  • ./api/app.js is the main entry point of BookCars API.

Frontend

The frontend is a web application built with Node.js, ReactJS and MUI. From the frontend the user can search for available cars depending on pickup and drop-off locations, dates and time booking. He can then select his booking options and finally checkout.

  • ./frontend/assets/ folder contains CSS and images.
  • ./frontend/pages/ folder contains ReactJS pages.
  • ./frontend/components/ folder contains ReactJS components.
  • ./frontend/services/ contains BookCars API client services.
  • ./frontend/App.js is the main ReactJS App that contains routes.
  • ./frontend/index.js is the main entry point of the frontend.

Mobile App

BookCars provides a native mobile app for Android and iOS. The mobile app is built with React Native and Expo. Like for the frontend, the mobile app allows the user to search for available cars depending on pickup and drop-off locations, dates and time booking. He can then select his booking options and finally checkout.

The user receives push notifications when his bookings are updated. Push notifications are built with Node.js, Expo Server SDK and Firebase.

  • ./mobile/assets/ folder contains images.
  • ./mobile/screens/ folder contains main pages.
  • ./mobile/components/ folder contains React Native components.
  • ./mobile/services/ contains BookCars API client services.
  • ./mobile/App.js is the main React Native App.
  • ./mobile/index.js is the main entry point of the mobile app.

Backend

The backend is a web application built with Node.js, ReactJS and MUI. From the backend, the admin user can create and manage suppliers, cars, locations, users and bookings. When the admin user creates a new supplier, the supplier will receive an automatic email for creating his account to access the backend so he can manage his car fleet and bookings.

  • ./backend/assets/ folder contains CSS and images.
  • ./backend/pages/ folder contains ReactJS pages.
  • ./backend/components/ folder contains ReactJS components.
  • ./backend/services/ contains BookCars API client services.
  • ./backend/App.js is the main ReactJS App that contains routes.
  • ./backend/index.js is the main entry point of the backend.

carrental's People

Contributors

aelassas avatar bookcars avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.