Skip to content

Latest commit

 

History

65 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wendigo

Wendigo is an online used car dealership in the making.

Live Link

https://wendigo.onrender.com/

Tech Stack

Static Badge Static Badge Static Badge Static Badge Static Badge Static Badge Static Badge Static Badge

Index

Features List | Database Schema | User Stories | Wireframes

Landing Page

Screenshot 2024-06-27 214411

Vehicles For Sell

Screenshot 2024-06-27 221629

Vehicle Details

Screenshot 2024-06-27 221805

Endpoints

Auth Routes

Current User

  • Purpose: This fetch is sent upon initial app load and on subsequent refreshes and navigations. It returns an object representing the current user, if user is logged in.
  • Method: POST
  • URL: /api/auth/
  • Successful Response: HTTP Status Code 200
{
  "cart": "ARRAY_OF_PRODUCT_OBJECTS",
  "createdat": "STRING",
  "email": "STRING",
  "id": "INT",
  "updatedat": "STRING",
  "username": "STRING"
}
  • Error Response: HTTP Status Code 401
{
  "errors": "Unauthorized"
}

Unauthorized (from @login_required)

  • Purpose: This endpoint will be routed to in the case that a protected route does not pass validations for the current user.
  • Method: POST
  • URL:/api/auth/unauthorized
  • Successful Response: NA
  • Error Response: HTTP Status Code 401
{
  "errors": "Unauthorized"
}

Sign Up

  • Purpose: This fetch sends the signup form data to the backend to process the creation of a new user.
  • Method: POST
  • URL: /api/auth/signup
  • Successful Response: HTTP Status 201
{
  "id": "INT",
  "username": "STRING",
  "email": "STRING"
}
  • Error Response: HTTP Status 400
{
  "errors": "ARRAY_OF_STRINGS"
}

Login

  • Purpose: This fetch attempts to login a user with the provided credentials.
  • Method: POST
  • URL: /api/auth/login
  • Successful Response: HTTP Status 200
{
  "id": "INT",
  "username": "STRING",
  "email": "STRING"
}
  • Error Response: HTTP Status 400
{
  "errors": "ARRAY_OF_STRINGS"
}

Logout

  • Purpose: This fetch will logout the current user.
  • Method: POST
  • URL: /api/auth/logout
  • Successful Response: HTTP Status 200
{
  "message": "User logged Out"
}
  • Error Response: HTTP Status 404
{
  "errors": "No session"
}

Feature List

  1. Purchase Vehicle
  2. Reviews
  3. Search

Future Implementation Goals

  1. Sell Vehicle
  2. Wishlist
  3. Filters
  4. Payments
  5. OAuth

Connect

https://www.linkedin.com/in/jeramieforbes/

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages