WebAhead5 / CarShare

A project for sharing cars - test login credentials in Readme
https://cars-sharing.herokuapp.com/
0 stars 0 forks source link

CarShare

A project for sharing cars :oncoming_automobile: :seedling:

Contents

Website: https://cars-sharing.herokuapp.com/

Login Credentials (for code review):

User Story

As a member of WebAhead who has a car I would like to share...

As a member of WebAhead who is interested in using a car...

Suggested additional requirements / stretch goals:

Website Design

Sign in:

sign in

Search for Car:

select car

Add Car page and User Details page WIP

Database Design

Schema:

Table 1: Users
    - id
    - first name
    - last name
    - phone number
    - email
    - password
    - image
    -------------------------
Table 2: Cars
    - id
    - type
    - model
    - engine
    - color
    - sets number
    - raite
    - image
    -------------------------
Table 3: Reservations (Pivot table)
    - id
    - user_id
    - car_id
    - from_date
    - to_date
    -------------------------

MANY to MANY relationship between users and cars, where reservations links to two primary IDs

Server Design

Routing:

Static:
        -------
  - Login page
  - User Info page
  - Reservation page
  - Adding Car page 

Dynamic
        -------
 GET:
 - Get All Cars
 - Get Available Cars
 - Get Password check
 - Get user details & reservations

 POST:
 - Post reservations
 - Post new Cars

Conclusion