rarelootvault-svelte Svelte Themes

Rarelootvault Svelte

RareLootVault SvelteKit marketplace - CodMarket.gg

RareLootVault - SvelteKit + Convex Marketplace

A modern gaming marketplace built with SvelteKit and Convex, featuring secure escrow payments via Stripe.

šŸš€ Tech Stack

  • Frontend: SvelteKit + TypeScript
  • Styling: Tailwind CSS v3
  • Backend: Convex (realtime database)
  • Payments: Stripe
  • Auth: Auth.js (to be integrated)

āœ… Completed Features

Pages

  • āœ… Sign In (/auth/signin)
  • āœ… Sign Up (/auth/signup)
  • āœ… Dashboard (/dashboard)
  • āœ… Browse Listings (/listings)
  • āœ… Listing Detail (/listings/[id])
  • āœ… Create Listing (/listings/new)
  • āœ… Profile (/profile)

Components

  • āœ… Sidebar navigation
  • āœ… Button component
  • āœ… Input component
  • āœ… Stat Card component
  • āœ… Listing Card component

Backend (Convex)

  • āœ… Database schema (users, listings, transactions, reviews)
  • āœ… CRUD functions for listings
  • āœ… User management functions
  • āœ… Transaction handling functions

Design System

  • āœ… All CSS variables from .pen design
  • āœ… Color palette (dark theme)
  • āœ… Typography (Inter font)
  • āœ… Border radius tokens
  • āœ… Game-specific colors (COD, Fortnite, Minecraft)

🚧 To-Do

High Priority

  • Set up Convex authentication
  • Integrate Stripe payments
  • Implement file upload for listing images
  • Connect frontend to Convex backend
  • Add form validation
  • Implement real-time updates

Additional Pages

  • Verify Email page
  • Auth Error page
  • Transaction Success page
  • System Health Dashboard (admin)
  • Messages page
  • Wallet page
  • Settings page

Features

  • Search functionality
  • Filtering and sorting
  • Wishlist
  • Reviews system
  • Messaging between users
  • Admin panel
  • Email notifications

šŸ› ļø Setup Instructions

1. Install Dependencies

```bash npm install ```

2. Set up Convex

  1. Sign up at convex.dev
  2. Run the Convex setup: ```bash npx convex dev ```
  3. Follow the prompts to create a new project
  4. Copy the deployment URL to .env.local: ``` VITE_CONVEX_URL=https://your-deployment.convex.cloud ```

See CONVEX_SETUP.md for detailed instructions.

3. Set up Stripe

  1. Get your Stripe keys from stripe.com/dashboard
  2. Add to .env.local: ``` VITE_STRIPE_PUBLISHABLE_KEY=pk_test_... STRIPE_SECRET_KEY=sk_test_... STRIPE_WEBHOOK_SECRET=whsec_... ```

4. Run Development Server

```bash npm run dev ```

Visit http://localhost:5173

šŸ“ Project Structure

``` src/ ā”œā”€ā”€ lib/ │ ā”œā”€ā”€ components/ # Reusable UI components │ │ ā”œā”€ā”€ Button.svelte │ │ ā”œā”€ā”€ Input.svelte │ │ ā”œā”€ā”€ Sidebar.svelte │ │ ā”œā”€ā”€ StatCard.svelte │ │ └── ListingCard.svelte │ └── convex.ts # Convex client setup ā”œā”€ā”€ routes/ │ ā”œā”€ā”€ auth/ │ │ ā”œā”€ā”€ signin/ # Sign in page │ │ └── signup/ # Sign up page │ ā”œā”€ā”€ dashboard/ # User dashboard │ ā”œā”€ā”€ listings/ # Listings pages │ │ ā”œā”€ā”€ [id]/ # Listing detail │ │ └── new/ # Create listing │ ā”œā”€ā”€ profile/ # User profile │ └── +layout.svelte # Root layout └── app.css # Global styles & design tokens

convex/ ā”œā”€ā”€ schema.ts # Database schema ā”œā”€ā”€ listings.ts # Listing queries/mutations ā”œā”€ā”€ users.ts # User queries/mutations └── transactions.ts # Transaction queries/mutations ```

šŸŽØ Design System

Colors

  • Primary: --accent-primary (#6366F1)
  • Secondary: --accent-secondary (#22D3EE)
  • Background: --bg-primary, --bg-secondary, --bg-tertiary
  • Text: --text-primary, --text-secondary, --text-muted
  • Game Colors: --game-cod, --game-fortnite, --game-minecraft

Typography

  • Font: Inter (Google Fonts)
  • Weights: 400 (normal), 500 (medium), 600 (semibold), 700 (bold)

Border Radius

  • sm: 8px
  • md: 12px
  • lg: 16px
  • full: 9999px

šŸ” Security Features

  • Email verification (to be implemented)
  • Two-factor authentication (to be implemented)
  • Escrow payment system
  • Secure file uploads
  • Rate limiting
  • Audit logs

šŸ“ License

Private - All rights reserved

Top categories

Loading Svelte Themes