CoolFace
Apppublic

Shinhati2023/product-grit

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
App README

Product Grit Marketplace

Product Grit is a mobile-first, high-performance marketplace feed built with React, Vite, and Tailwind CSS. It features a "Liquid Glass" aesthetic and integrates directly with Hugging Face Datasets for persistent image storage.

๐Ÿ”— Dataset Connection

This application is connected to the following dataset for storage:

  • โ€”Dataset Name: Shinhati2023/gallery-storage
  • โ€”Function: User-uploaded images are automatically pushed to this dataset.
  • โ€”Persistence: Images persist even if the Docker container restarts.

โœจ Key Features

  • โ€”Liquid Glass UI: A sophisticated, frosted-glass interface designed for modern mobile displays.
  • โ€”Zero-State Workspace: Starts with a clean slate; content appears only after user interaction.
  • โ€”Direct Uploads: Seamless integration with the Hugging Face Hub API to push content to Shinhati2023/gallery-storage.
  • โ€”Mobile Optimized: Snap-scrolling, touch-friendly interactions, and hidden scrollbars for a native app feel.

๐Ÿ› ๏ธ Tech Stack

  • โ€”Framework: React 18 + TypeScript
  • โ€”Build Tool: Vite
  • โ€”Styling: Tailwind CSS + Framer Motion
  • โ€”Storage: Hugging Face Hub (@huggingface/hub)
  • โ€”Deployment: Docker (Node 20 Alpine)

๐Ÿš€ Environment Configuration

To run this Space, you must configure the following Secret in your Space Settings:

VariableDescription
VITE_HF_TOKENA Hugging Face Write token. This authorizes the app to upload images to Shinhati2023/gallery-storage.
Note: Go to Settings > Variables and secrets to add this token.

๐Ÿ“ฆ Local Development

To run this project locally:

  1. 1.Clone the repository:
bash
    git clone [https://huggingface.co/spaces/Shinhati2023/product-grit](https://huggingface.co/spaces/Shinhati2023/product-grit)
    cd product-grit
  1. 1.Install dependencies:
bash
    npm install
  1. 1.Set up environment: Create a .env file in the root:
env
    VITE_HF_TOKEN=your_hf_write_token_here
  1. 1.Run the development server:
bash
    npm run dev