Skip to content

CakraSera/fitlex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Fitlex

Fitlex is a modern e-commerce platform for fitness equipment, designed to provide a seamless shopping experience for users looking to enhance their home workouts.

Table of Contents:

Links

Inspirations:

Architecture

Presentation Layer (UI)

  • HTML
  • CSS
    • Tailwind CSS
    • Shadcn/ui
  • Javascript
  • Typescript
  • React
  • React Router
  • Docker

Application Layer (Business Logic)

  • Javascript
  • Typescript
  • Hono
  • OpenAPI
  • Zod
  • Docker

Data Access Layer (Database)

  • Prisma
  • PostgreSQL
  • Docker

Flowchart

graph TD
    A[Visit Website/App] --> B{**Home Page**};

    B -- Click Banner / Promo Bundle --> C[**Bundle Detail Page**];
    B -- Click Catalog Menu --> D[**Product Catalog Page**];

    D -- Select Product / Bundle --> C;

    C -- "Package includes: [Tool A] + [Tool B] & Program X" --> F[**Add to Cart**];

    F --> G{**Shopping Cart Page**};
    G -- "Continue Shopping" --> D;
    G -- "Proceed to Checkout" --> H[**Checkout Page**];

    H --> I[Payment Processing];

    I --> J{**Order Confirmation Page**};
    J -- "Order Received (Order ID #123)" --> K[User Receives Email/Notification];
Loading

Features

  • Home page
    • A hero section with a large banner highlighting the main promotional bundle (e.g., "30% Off the Desk Warrior Bundle").
    • The primary call-to-action (CTA) is "View Bundle" or "Shop Now," leading directly to that bundle's detail page.
    • A section showcasing a few other featured bundles.
    • Access to the full product catalog with filtering (by tool, price, workout goal) and sorting (best-sellers, latest) options. (see example)
  • Product page
    • Product image gallery, including short videos of the product being used in a limited space (e.g., a small apartment room).
    • SKU (stock keeping unit)
    • Name
    • Price (in Indonesian Rupiah)
    • Detailed description
      • Technical specifications.
      • Key benefits.
      • A "Related In-App Workout Programs" section that shows how this product can be used.
    • Add to cart form: quantity input & add to cart button
  • Shopping cart page
    • Product items to buy
      • Image, name, price, quantity, total (price x quantity)
      • Remove item from cart
    • Navigation links: continue shopping, go to products catalogue
    • Proceed to checkout
  • Checkout page
    • Order summary
      • List of products to purchase
      • Grand total of all items
    • Payment method selection (e.g., bank transfer, e-wallet)
  • Order processing
    • Confirmation page with order details (Order Number, summary, status).
    • An engagement CTA: "While waiting for your order, download our app and set up your account!".
    • Order status updates sent via email or app notifications (Order Processed, Shipped, Tracking Number).

UI Designs

Home Page

Home Page

Entity Relationship Diagram (ERD)

Detailed design: https://dbdiagram.io/d/fitlex-688948d2cca18e685c55af5c

ERD

REST API Endpoints

  • Production: https://fitlex-backend.cakrasera.dev
  • Local: http://localhost:3000
Endpoint HTTP Description
/products GET Get all products
/products/{slug} GET Get product by slug
/products/featured GET Get product by featured
Endpoint HTTP Permission
/ GET Public
/users GET Public
/users/{id} GET Public
/auth/register POST Public
/auth/login POST Public
/auth/me GET Authenticated
/auth/logout POST Authenticated

Product

Example response for a single product:

{
  "id": "abc123",
  "name": "Panda Plush",
  "price": 120000
}

Add New Product

Request Body:

{
  "name": "Panda Plush",
  "price": 120000,
  "color": "white"
}

Response Body:

{
  "id": "abc123",
  "name": "Panda Plush",
  "price": 120000,
  "colors": ["white"]
}

About

Implement Fullstack project to build e-commerce apps

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published