Skip to content

Trust is the best solution to get the best quality spare parts directly from the manufacturer. Stay trusted. Still believe.

Notifications You must be signed in to change notification settings

aan-cloud/trust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Trust

Trust is an online store for automotive sparepart. We sell quality good producs from trusted companies and have collaborated with more than 4 international spare parts manufacturers. Our job is to mediate between you and the manufacturer in transactions, and prioritize your trust above everything else. Therefore we named this platform is TRUST (In English).

Table of Contents:

Links

Inspirations:

Features

  • Home page
  • Product page
    • Image
    • SKU (stock keeping unit)
    • Name
    • Price
    • Description
    • Add to cart form: add to cart button
  • Shopping cart page
    • Product items to buy
      • Image, name, price, quantity, total (price x quantity)
    • Link: continue shopping, go to products catalogue
    • Link: checkout
  • Checkout page
    • On WhatsApp: Generate transaction format form.

Tech Stack and Dependencies

UI Designs

Home Page

Home Page

Entity Relationship Diagram (ERD)

ERD

REST API Endpoints

  • Production: https://trust-api.muhammad-farhan.com
  • Local: http://localhost:3000
Endpoint HTTP Description
/products GET Get all products
/products/:slug GET Get product by id
/products/:category GET Get product by id
/products/seed POST Seed all initial products
/products POST Add new product
/products/:slug DELETE Delete product by id
/products/:slug PATCH Update product by id

Product

{
  "id": "abc123",
  "name": "Tire Super",
  "slug": "tire-super",
  "imageUrl": "http://image.com",
  "manufacturer": "toyota",
  "description": "Very strong Tire for racing",
  "price": 2000,
  "category": "Tire",
  "stock": 100,
  "createdAt": "23-11-2023",
  "updatedAt": "26-12-2023"
}

Add New Product

Request Body:

{
  "name": "Tire Super",
  "slug": "tire-super",
  "imageUrl": "http://image.com",
  "manufacturer": "toyota",
  "description": "Very strong Tire for racing",
  "price": 2000,
  "category": "Tire",
  "stock": 100
}

Response Body:

{
  "name": "Tire Super",
  "slug": "tire-super",
  "imageUrl": "http://image.com",
  "manufacturer": "toyota",
  "description": "Very strong Tire for racing",
  "price": 2000,
  "category": "Tire",
  "stock": 100
}

About

Trust is the best solution to get the best quality spare parts directly from the manufacturer. Stay trusted. Still believe.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published