Skip to content

Amrsono/Store-2090

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

91 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌌 Cyber Fashion - 2090s Cyberpunk Store

Next.js React FastAPI GraphQL PostgreSQL

A cutting-edge, full-stack e-commerce platform for futuristic fashion with a stunning 2090s Minimalist Cyberpunk aesthetic.

Cyber Fashion

✨ Features

🎨 Frontend (Next.js)

  • Interactive 3D Hero Section - React-Three-Fiber with floating holographic spheres
  • Glassmorphism UI - Frosted glass effects throughout
  • Neon Glow Effects - Electric blue, quantum purple, and plasma pink accents
  • Scroll Animations - Smooth reveal-on-scroll with Framer Motion
  • Bento Grid Layout - Modern, responsive product displays
  • Mobile-First Design - Fully responsive on all devices
  • Dark Mode 2.0 - Deep obsidian backgrounds with neon accents

πŸš€ Backend (FastAPI + GraphQL)

  • GraphQL API - Efficient data fetching with Strawberry
  • JWT Authentication - Secure user authentication
  • PostgreSQL Database - Relational data storage
  • SQLAlchemy ORM - Type-safe database operations
  • User Management - Registration, login, role-based access
  • Product Catalog - Clothes, shoes, bags, and accessories
  • Order System - Complete e-commerce order flow

πŸ› οΈ Tech Stack

Frontend

  • Next.js 16.1.4 - React framework with SSR/SSG
  • React 19.2.3 - UI library
  • TypeScript 5.0 - Type safety
  • Tailwind CSS v4 - Utility-first CSS
  • React Three Fiber - 3D graphics
  • Framer Motion 12.29.0 - Animations
  • Drei - 3D helpers
  • Three.js - WebGL rendering

Backend

  • FastAPI 0.109.0 - Modern Python web framework
  • Strawberry GraphQL 0.219.0 - GraphQL library
  • PostgreSQL - Database
  • SQLAlchemy 2.0.25 - ORM
  • JWT - Authentication
  • Bcrypt - Password hashing
  • Uvicorn - ASGI server

οΏ½ Quick Start

Prerequisites

  • Node.js 20+
  • Python 3.11+
  • PostgreSQL 15+
  • Git

1. Clone Repository

git clone https://github.com/Amrsono/Store-2090.git
cd Store-2090

2. Frontend Setup

# Install dependencies
npm install

# Run development server
npm run dev

Frontend will be available at http://localhost:3000

3. Backend Setup

# Navigate to backend
cd backend

# Create virtual environment
python -m venv venv

# Activate virtual environment
# Windows:
venv\Scripts\activate
# Linux/Mac:
source venv/bin/activate

# Install dependencies
pip install -r requirements.txt

# Create .env file
copy .env.example .env

# Edit .env with your database credentials
# DATABASE_URL=postgresql://postgres:password@localhost:5432/cyber_fashion

# Create PostgreSQL database
createdb cyber_fashion

# Run server
uvicorn app.main:app --reload --port 8000

Backend will be available at:

4. Seed Database (Optional)

cd backend
python -m app.seed

πŸ“ Project Structure

Store-2090/
β”œβ”€β”€ app/                    # Next.js app directory
β”‚   β”œβ”€β”€ layout.tsx         # Root layout
β”‚   β”œβ”€β”€ page.tsx           # Home page
β”‚   └── globals.css        # Global styles
β”œβ”€β”€ components/            # React components
β”‚   β”œβ”€β”€ Navbar.tsx
β”‚   β”œβ”€β”€ Hero3D.tsx
β”‚   β”œβ”€β”€ FeaturesSection.tsx
β”‚   β”œβ”€β”€ ProductsSection.tsx
β”‚   β”œβ”€β”€ DashboardSection.tsx
β”‚   └── Footer.tsx
β”œβ”€β”€ lib/                   # Utilities
β”‚   └── utils.ts
β”œβ”€β”€ backend/               # FastAPI backend
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ models/       # Database models
β”‚   β”‚   β”œβ”€β”€ graphql/      # GraphQL schema
β”‚   β”‚   β”œβ”€β”€ utils/        # Auth utilities
β”‚   β”‚   β”œβ”€β”€ config.py
β”‚   β”‚   β”œβ”€β”€ database.py
β”‚   β”‚   β”œβ”€β”€ main.py
β”‚   β”‚   └── seed.py
β”‚   β”œβ”€β”€ requirements.txt
β”‚   └── README.md
β”œβ”€β”€ public/               # Static assets
β”œβ”€β”€ README.md            # This file
β”œβ”€β”€ BACKEND_GUIDE.md     # Backend implementation guide
β”œβ”€β”€ DEPLOYMENT.md        # Deployment instructions
β”œβ”€β”€ PROJECT_SUMMARY.md   # Complete project summary
└── QUICKSTART.md        # Quick start guide

🎨 Design System

Color Palette

--obsidian: #0a0a0f        /* Deep background */
--deep-space: #12121a      /* Secondary background */
--neon-blue: #00d4ff       /* Primary accent */
--quantum-purple: #b300ff  /* Secondary accent */
--plasma-pink: #ff00ff     /* Tertiary accent */
--electric-cyan: #00fff5   /* Highlight */
--solar-yellow: #ffeb3b    /* Warning/Info */
--cyber-green: #00ff88     /* Success */

Custom Utilities

  • .glass - Glassmorphism effect
  • .neon-glow-blue - Neon blue glow
  • .gradient-cyber - Cyberpunk gradient
  • .text-gradient - Gradient text
  • .hover-lift - Lift on hover
  • .animate-float - Floating animation

οΏ½ Database Schema

Users

  • Authentication and profile data
  • Admin role support

Products

  • Title, description, price
  • Category (Clothes/Shoes/Bags/Accessories)
  • Stock management
  • Image URLs

Orders

  • User orders with status tracking
  • Shipping information

OrderItems

  • Individual items in orders
  • Quantity and pricing

πŸ” Authentication

Register

mutation {
  register(input: {
    email: "user@cyber.com"
    username: "cyberfan"
    password: "SecurePass123!"
  }) {
    accessToken
    user { id email }
  }
}

Login

mutation {
  login(input: {
    email: "user@cyber.com"
    password: "SecurePass123!"
  }) {
    accessToken
    user { id email isAdmin }
  }
}

πŸ“¦ GraphQL API

Get Products

query {
  products(category: CLOTHES) {
    id
    title
    price
    category
    stock
  }
}

Create Order

mutation {
  createOrder(userId: 1, input: {
    items: [{ productId: 1, quantity: 2 }]
    shippingAddress: "123 Cyber St"
  }) {
    id
    totalAmount
    status
  }
}

πŸš€ Deployment

Frontend (Vercel)

# Install Vercel CLI
npm i -g vercel

# Deploy
vercel

Backend (Docker)

cd backend
docker build -t cyber-fashion-api .
docker run -p 8000:8000 cyber-fashion-api

See DEPLOYMENT.md for detailed instructions.

πŸ“š Documentation

  • README.md - This file
  • BACKEND_GUIDE.md - Complete backend setup
  • DEPLOYMENT.md - Deployment guide
  • PROJECT_SUMMARY.md - Feature summary
  • QUICKSTART.md - Quick start guide
  • backend/README.md - Backend API docs

🎯 Features Roadmap

  • Frontend UI with 3D elements
  • Product catalog
  • User authentication
  • Order system
  • GraphQL API
  • Shopping cart
  • Payment integration (Stripe)
  • Admin dashboard
  • Product reviews
  • Wishlist
  • Email notifications

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

οΏ½ License

This project is licensed under the MIT License.

πŸ™ Acknowledgments

  • Next.js team for the amazing framework
  • FastAPI for the modern Python backend
  • Strawberry for GraphQL implementation
  • React Three Fiber for 3D capabilities
  • Framer Motion for smooth animations

πŸ“ž Contact


Built with ⚑ for the future of fashion

Experience 2090s style today 🌌

About

"2070s Minimalist Cyberpunk Fashion Store - Full-stack Next.js + FastAPI + GraphQL + PostgreSQL"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors