Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aan-cloud/trust
https://github.com/aan-cloud/trust
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/aan-cloud/trust
- Owner: aan-cloud
- Created: 2024-09-15T14:53:15.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-18T10:34:38.000Z (4 months ago)
- Last Synced: 2024-09-18T14:12:08.019Z (4 months ago)
- Size: 498 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Trust
[Trust](www.trust.com) 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:
- [Trust](#Trust)
- [Links](#links)
- [Features](#features)
- [UI Designs](#ui-designs)
- [Home Page](#home-page)## Links
- Website/Frontend:
- Backend:
- Repositories:
- General:
- Backend:
- Frontend:Inspirations:
-
## Features
- Home page
- Hero section
- Products catalogue. Example:
- 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
- Frontend :
- [Vite](https://vite.dev)
- [React](https://react.dev)
- [React Router](https://reactrouter.com)
- [Tailwindcss](https://tailwindcss.com)
- [NPM](https://npmjs.com)
- [Typescript](https://typescriptlang.org)
- Backend :
- [Bun](https://bun.sh)
- [Typescript](https://typescriptlang.org)
- [Openapi](https://swagger.io)
- [Hono](https://hono.dev)## UI Designs
- [Figma](https://www.figma.com/design/3ijGGTIKpevl9sPWqlcJGM/Trust?node-id=0-1&t=0BYMeZt73WgfDr1f-1)
### Home Page
## Entity Relationship Diagram (ERD)
![ERD](./diagrams/erd.svg)
## 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
```json
{
"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:
```json
{
"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:
```json
{
"name": "Tire Super",
"slug": "tire-super",
"imageUrl": "http://image.com",
"manufacturer": "toyota",
"description": "Very strong Tire for racing",
"price": 2000,
"category": "Tire",
"stock": 100
}
```