Skip to content

Second STAR is a modern, responsive web application for a thrift clothing store. Built with Vite + React, powered by Firebase for authentication & database storage, and enhanced with Google Maps JavaScript API for location-based features.

Notifications You must be signed in to change notification settings

chagaaxo/secondstar

Repository files navigation

👕 Second STAR — Thrift Clothing Store Website

Second STAR is a modern, responsive web application for a thrift clothing store.
Built with Vite + React, powered by Firebase for authentication & database storage,
and enhanced with Google Maps JavaScript API for location-based features.


✨ Features

  • 🛍 Product Listings — Browse a curated selection of thrift clothing items.
  • 🔍 Search & Filter — Easily find products by name, category, or size.
  • 📦 Product Details Page — View item descriptions, prices, and seller info.
  • 💬 Messaging System — Contact sellers directly via in-app chat (Firestore).
  • 📍 Store Locator — Interactive Google Map to find store locations & drop-off points.
  • 🔐 Secure Authentication — User sign-up, login, and profile management with Firebase Auth.
  • 🗄 Realtime Database — Firestore for storing products, messages, and user profiles.
  • 📱 Responsive Design — Works seamlessly on desktop, tablet, and mobile.

🛠 Tech Stack


⚙️ Installation & Setup

  1. Clone the repository
    git clone https://github.com/chagaaxo/secondstar.git
    cd secondstar
    
  2. Install dependencies
    npm install
    
  3. Setup firebase inside firebase.js
    apiKey: "your_firebase_api_key",
    authDomain: "your_firebase_auth_domain",
    projectId: "your_firebase_project_id",
    storageBucket: "your_firebase_storage_bucket",
    messagingSenderId: "your_firebase_messaging_sender_id",
    appId: "your_firebase_app_id",
    
  4. Run the development serverv
    npm run dev
    
  5. Build for production
    npm run build
    

🔑 Firebase Setup

  1. Go to Firebase Console
  2. Create a new project (e.g., secondstar)
  3. Enable:
    • Authentication (Email/Password, Google, etc.)
    • Firestore Database
    • Firebase Hosting (optional) Copy your Firebase config and paste into firebase.js

🗺 Google Maps Setup

  1. Go to Google Cloud Console
  2. Create an API key for Google Maps JavaScript API
  3. Enable billing (required by Google Maps)
  4. Restrict your key to your domain for security
  5. Add it to your .env as REACT_APP_GOOGLE_MAPS_API_KEY

🗺 Midtrans example payment

Midtrans Sandbox Simulator


🗺 Backend Code (IMPORTANT YOU'LL NEED IT FOR PAYMENT GATEAWAY)

Backend


📜 License

This project is licensed under the MIT License — you are free to use, modify, and distribute


💌 Acknowledgements


🌊 Live Demo

Second STAR

About

Second STAR is a modern, responsive web application for a thrift clothing store. Built with Vite + React, powered by Firebase for authentication & database storage, and enhanced with Google Maps JavaScript API for location-based features.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published