Giter Site home page Giter Site logo

nbasimulator's Introduction

RENT A CAR API

ERD:

ERD


Rent A Car Project

  • Customers;

    • can select start and end date and see the list of available cars on selected dates. It is not allowed to choose past dates.
    • can choose a car on the list and reserve that car, but can not reserve more than one car on a selected time period,
    • can not reserve cars which are reserved by other customers on selected time period.
    • can see the list of their reservations including past ones.
    • can list, create, read their reservations.
    • can not update, delete reservations.
  • Admins;

    • can make CRUD operations on Car table,
    • can make CRUD operations on Customer (User) table,
    • can make CRUD operations on Reservation table,
  • It can be createdId and updatedId in Car model.

  • There will be searching, sorting and pagination capabilities on list views.


Araç Kiralama Projesi

  • Müşteriler:

    • Tarih aralığı belirtip müsait araç listeleyebilir. Geçmiş tarihler listelenmez.
    • Seçilen tarih aralığında araç rezerve edilebilir, ancak aynı tarih aralığında ikinci bir araç kiralayamaz.
    • Rezerve edilmiş bir aracı, o tarihlerde rezerve edemez.
    • Rezervasyonlarını listeyebilir, ekleyebilir, okuyabilir.
    • Rezervasyonlarını güncelleyemez, silemez.
  • Yöneticiler:

    • Araba tablosu CRUD işlemleri
    • Müşteri (User) tablosu CRUD işlemleri
    • Reservasyon tablosu CRUD işlemleri
  • Araba tablosunda createdId ve updatedId olabilir.

  • Listeleme ekranlarında arama, sıralama ve sayfalama imkanları olacaktır.


Folder/File Structure:

    .env
    .gitignore
    index.js
    readme.md
    src/
        config/
            dbConnection.js
            swagger.json
        controllers/
            auth.js
            car.js
            reservation.js
            token.js
            user.js
        helpers/
            passwordEncrypt.js
            sync.js
        middlewares/
            authentication.js
            errorHandler.js
            findSearchSortPage.js
            logger.js
            permissions.js
        models/
            car.js
            reservation.js
            token.js
            user.js
        routes/
            auth.js
            car.js
            document.js
            index.js
            reservation.js
            token.js
            user.js

nbasimulator's People

Contributors

yamasya54 avatar

Watchers

 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.