Skip to content

About

πŸš€ Swipe. Match. Collaborate. A geolocation-aware skill-matching & networking platform for creators and developers built with React 19, Spring Boot, PostgreSQL, and Supabase.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

44 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ SkillShare β€” Swipe. Match. Collaborate.

SkillShare Social Preview Card

SkillShare

Full-stack geolocation-aware skill matchmaking & collaboration platform for creators, designers, and developers

Vercel Deployment Spring Boot Java React Supabase PostgreSQL License


πŸ“‘ Table of Contents


πŸ“– Overview

SkillShare is an interactive, full-stack, geolocation-aware networking and collaboration platform engineered specifically for creators, UI/UX designers, software engineers, and founders. Designed with the intuitive engagement mechanics of modern matchmaking apps, SkillShare transforms professional networking from cold, sterile messaging into dynamic, serendipitous collaborations.

Users swipe through rich profile cards highlighting complementary technical and creative skill sets. The underlying engine executes an intelligent recursive Haversine radius search paired with multi-level proficiency ranking, ensuring collaborators connect with the most qualified peers nearby before seamlessly falling back to global top talent.

Core Capabilities at a Glance

  • Interactive Gesture Matching: Smooth Tinder-style swiping powered by Framer Motion, spring physics, and multi-touch card dragging.
  • Dynamic Geolocation Routing: Haversine distance calculations starting at a 10 km hyper-local radius and auto-expanding in 10 km increments up to 100 km.
  • Proficiency-Ranked Recommendation: Sorts matches by verified skill depth (Advanced > Intermediate > Beginner) with automatic global fallback.
  • Instant WebSocket Messaging: Sub-millisecond real-time chat with Supabase Realtime channels, rich media attachments, quick polls, event scheduling, and stickers.
  • OAuth In-App Browser Shield: Proprietary user-agent sniffing and automated step-by-step fallback modal overcoming Google and GitHub OAuth blocks inside LinkedIn, Instagram, and Twitter webviews.
  • Enterprise Spring Security Resource Server: Multi-algorithm JWT validation (ES256, RS256, HS256) against Supabase Auth with strict CORS enforcement.

🌟 Key Features

🀝 Swipe-Based Discovery Feed

Capability Details
Physics-Based Cards Framer Motion & @use-gesture/react spring dragging with rotational tilt and swipe threshold triggers.
Interactive Overlays Visual LIKE (Jelly Mint) and PASS (Hot Coral) dynamic stamp indicators reacting to drag coordinates.
Reciprocal Match Popover Immediate mutual-match celebration modal when both creators swipe right, launching a direct chat channel.
Card Deck Management Automatic client-side exclusion of previously swiped profiles to eliminate repeat evaluations.

πŸ“ Geolocation & Haversine Engine

Capability Details
Haversine Geodesic Math Calculates true spherical surface distance (km) between GPS coordinates on Earth ($R = 6371\text{ km}$).
Recursive Radius Expansion Initiates search at 10 km; if candidate count is below 3, automatically steps out (+10 km) up to a 100 km perimeter.
Proficiency Matrix Sort Within matched distance brackets, profiles are weighted by maximum shared skill proficiency score (Advanced=3, Intermediate=2, Beginner=1).
Global Talent Fallback If zero creators are within 100 km, seamlessly serves globally featured, proficiency-ranked profiles.

πŸ”’ In-App Browser OAuth Shield

Capability Details
User-Agent Sniffing Detects restricted webview environments (LinkedInApp, Instagram, FBAV, Twitter, Android wv).
Header Alert Banner Persistent ambient warning informing social visitors that third-party OAuth requires a standard browser.
Step-by-Step Guidance Modal Prevents 403 disallowed_useragent errors by providing interactive instructions to open Safari or Chrome.

πŸ’¬ Real-Time Messaging & Collaboration

Capability Details
Supabase Realtime Channels Postgres change-data-capture (CDC) subscriptions streaming instant peer messages without polling.
Media Attachments Integrated file uploader supporting images, design mockups, and documents directly inside conversations.
Interactive Tools In-chat voting polls, project event coordination calendars, and emoji sticker trays.
Conversation Threads Dynamic sidebar tracking mutual matches, unread badges, and last active conversation states.

πŸ“± Responsive Mobile Architecture & Design

Capability Details
Dual Navigation Paradigm Top desktop navigation bar smoothly morphs into an ergonomic mobile bottom navigation bar with iOS safe-area inset padding.
High-Contrast Dark Canvas Precision-tuned dark aesthetic (#12121e) accented with neon cyan (#3cffd0) and hot coral highlight palettes.
Social OpenGraph Metadata Dynamic Open Graph and Twitter Card tags configured with cache-busted production assets (og-image.png?v=2).

πŸ›οΈ System Architecture

High-Level System Architecture

flowchart TB
    subgraph Client["πŸ–₯️ Frontend Client β€” React 19 / Vite / Framer Motion"]
        Landing["Landing Page<br/>(OAuth Shield & Login)"]
        Terms["Terms & Conditions Gate<br/>(Security Verification)"]
        Setup["Profile Onboarding<br/>(Skills & Geolocation)"]
        subgraph CorePages["Core App Views"]
            HomeView["Home Feed<br/>(Feed Timeline)"]
            ExploreView["Explore Deck<br/>(SwipeCard Engine)"]
            MatchesView["Matches Grid<br/>(Mutual Connections)"]
            MessagesView["Messages Console<br/>(Realtime Chat)"]
            ProfileView["User Profile<br/>(Skill Badges & Tags)"]
        end
        ClientSDK["Supabase JS SDK v2<br/>(Auth, Realtime, DB)"]
    end

    subgraph Backend["β˜• Backend API β€” Spring Boot 4.0 / Java 17"]
        Security["Spring Security 6<br/>JWT Resource Server Filter"]
        Decoder{"Multi-Algorithm<br/>JWT Decoder<br/>(ES256 / RS256 / HS256)"}
        MatchCtrl["MatchController<br/>(/api/matches/discover)"]
        MatchSvc["MatchService<br/>(Haversine & Proficiency)"]
        UserRepo["UserRepository<br/>(Spring Data JPA)"]
    end

    subgraph DataLayer["πŸ’Ύ Cloud Persistence Layer"]
        Postgres[("PostgreSQL Database<br/>Profiles, Skills, Matches")]
        SupaAuth["Supabase Auth<br/>(OAuth2 / Email Providers)"]
        SupaRT["Supabase Realtime<br/>(WebSocket Message Broker)"]
    end

    Landing --> Terms --> Setup --> CorePages
    CorePages --> ClientSDK
    ClientSDK <== "OAuth2 & Realtime Sockets" ==> SupaAuth & SupaRT
    ClientSDK -. "Bearer JWT Token" .-> Security
    Security --> Decoder --> MatchCtrl
    MatchCtrl --> MatchSvc --> UserRepo
    UserRepo <== "JPA / Hibernate" ==> Postgres
    SupaAuth <== "Row Level Security" ==> Postgres

    style Client fill:#161626,stroke:#3cffd0,color:#ffffff
    style Backend fill:#1e1e38,stroke:#5200ff,color:#ffffff
    style DataLayer fill:#0f172a,stroke:#3ECF8E,color:#ffffff
    style CorePages fill:#252542,stroke:#3cffd0,color:#ffffff
Loading

Frontend Component Hierarchy

graph TD
    App["App.jsx<br/>(Session & Profile State Engine)"]

    App --> Landing["LandingPage.jsx<br/>(In-App Browser Shield + Auth Form)"]
    App --> TermsModal["TermsModal.jsx<br/>(Policy Security Gate)"]
    App --> SetupProfile["SetupProfile.jsx<br/>(Skills & Lat/Lng Capture)"]
    App --> Navbar["Navbar.jsx<br/>(Desktop Bar + Mobile Bottom Tab)"]

    App --> Home["Home.jsx<br/>(Community Pulse)"]
    App --> Explore["Explore.jsx<br/>(Full-Screen Experience View)"]
    App --> Matches["Matches.jsx<br/>(Reciprocal Match Directory)"]
    App --> Messages["Messages.jsx<br/>(Realtime Chat / Media / Polls)"]
    App --> Profile["Profile.jsx<br/>(Account Settings & Portfolio)"]
    App --> UserProfile["UserProfile.jsx<br/>(Public Profile Sheet)"]

    Explore --> Experience["Experience.jsx<br/>(Deck Controller & Filter Engine)"]
    Experience --> SwipeCard["SwipeCard.jsx<br/>(Framer Motion Gesture Card)"]
    Experience --> MatchOverlay["MatchOverlay.jsx<br/>(Confetti & Mutual Celebration)"]

    subgraph CoreServices["Client Services"]
        SupabaseClient["supabaseClient.js<br/>(Singleton Client)"]
        ViteConfig["vite.config.js"]
    end

    App --> SupabaseClient

    style App fill:#1a103c,stroke:#5200ff,color:#ffffff
    style Experience fill:#1e1e38,stroke:#3cffd0,color:#ffffff
    style SwipeCard fill:#252542,stroke:#ff5370,color:#ffffff
    style CoreServices fill:#0f172a,stroke:#61DAFB,color:#ffffff
Loading

Backend Package Architecture

graph TD
    App["SkillshareApplication.java<br/>(@SpringBootApplication)"]

    App --> ConfigPkg["com.example.skillshare.config"]
    App --> CtrlPkg["com.example.skillshare.controller"]
    App --> ServicePkg["com.example.skillshare.service"]
    App --> RepoPkg["com.example.skillshare.repository"]
    App --> ModelPkg["com.example.skillshare.model"]

    ConfigPkg --> SecConfig["SecurityConfig.java<br/>(CORS + OAuth2 Resource Server)"]
    ConfigPkg --> MultiDecoder["Multi-Algorithm JwtDecoder<br/>(ES256 βž” RS256 βž” HS256)"]

    CtrlPkg --> MatchCtrl["MatchController.java<br/>@GetMapping('/api/matches/discover')"]

    ServicePkg --> MatchSvc["MatchService.java<br/>(Recursive Radius Search + Haversine)"]

    RepoPkg --> UserRepo["UserRepository.java<br/>(Shared Skills Query & Lat/Lng Fetch)"]

    ModelPkg --> User["User.java (@Entity profiles)"]
    ModelPkg --> UserSkill["UserSkill.java (@Entity skills)"]

    MatchCtrl --> MatchSvc
    MatchSvc --> UserRepo
    UserRepo --> User
    User --> UserSkill
    SecConfig --> MultiDecoder

    style App fill:#5200ff,stroke:#5200ff,color:#ffffff
    style ServicePkg fill:#1e1e38,stroke:#3cffd0,color:#ffffff
    style ConfigPkg fill:#252542,stroke:#ffb454,color:#ffffff
    style ModelPkg fill:#0f172a,stroke:#4169E1,color:#ffffff
Loading

πŸ”„ Data Flow Diagrams

DFD Level 0 β€” Context Diagram

flowchart LR
    Creator(("🎨 Creator / Developer"))
    Visitor(("πŸ“± Social Visitor<br/>(LinkedIn/Instagram)"))
    
    System["SkillShare Platform<br/>(React 19 + Spring Boot)"]

    Visitor -- "1. Social Referral Link" --> System
    System -- "2. Webview Check & Guidance" --> Visitor

    Creator -- "3. Vitals & Skill Profile" --> System
    Creator -- "4. Drag/Swipe Gestures" --> System
    Creator -- "5. Realtime Messages" --> System

    System -- "6. Dynamic Proximity Matches" --> Creator
    System -- "7. Mutual Match Alerts" --> Creator
    System -- "8. Instant Socket Delivery" --> Creator
Loading

DFD Level 1 β€” Major Subsystems

flowchart TB
    User(("Authenticated User"))

    subgraph P1["1.0 Auth & Onboarding"]
        AuthProc["OAuth / Email Sign-In"]
        TermsProc["Terms Agreement Gate"]
        ProfileProc["Skill & Lat/Lng Registration"]
    end

    subgraph P2["2.0 Discovery & Match Engine"]
        GeoProc["Haversine Distance Filter"]
        RadiusProc["Recursive Radius Expander"]
        RankProc["Proficiency Rank Sorter"]
    end

    subgraph P3["3.0 Interaction & Swiping"]
        SwipeProc["Card Gesture Processor"]
        MutualProc["Reciprocal Match Verifier"]
    end

    subgraph P4["4.0 Collaboration Subsystem"]
        ChatProc["Realtime Socket Broker"]
        MediaProc["Attachment & Poll Handler"]
    end

    subgraph DataStores["Data Stores"]
        D1[("D1: Profiles & Geolocation")]
        D2[("D2: User Skills & Proficiency")]
        D3[("D3: Swipe History & Matches")]
        D4[("D4: Messages & Channels")]
    end

    User --> P1
    P1 --> D1 & D2
    D1 & D2 --> P2
    P2 --> User
    User --> P3
    P3 --> D3
    D3 --> MutualProc
    MutualProc -- "On Mutual Right Swipe" --> P4
    P4 <==> D4
    P4 <==> User

    style P1 fill:#1e1e38,stroke:#3cffd0,color:#ffffff
    style P2 fill:#252542,stroke:#5200ff,color:#ffffff
    style P3 fill:#1a103c,stroke:#ff5370,color:#ffffff
    style P4 fill:#0f172a,stroke:#3ECF8E,color:#ffffff
Loading

DFD Level 2 β€” Discovery & Swipe Pipeline

sequenceDiagram
    autonumber
    actor Creator as 🎨 Creator (Frontend Client)
    participant Sec as Spring Security Filter
    participant Ctrl as MatchController
    participant Svc as MatchService
    participant Repo as UserRepository
    participant Supa as Supabase (Realtime / DB)

    Creator->>Sec: GET /api/matches/discover?lat=XX&lng=YY (Bearer JWT)
    Note over Sec: Validates Supabase JWT<br/>Decodes Subject (User UUID)
    Sec->>Ctrl: Authorized Request Dispatched
    Ctrl->>Svc: findCollaborators(currentUser, initialRadius = 10km)
    Svc->>Repo: findUsersWithSharedSkills(skillNames, currentUserId)
    Repo-->>Svc: Candidate List Sharing β‰₯ 1 Skill

    loop Recursive Haversine Radius Expansion
        Note over Svc: Filter candidates within radius R<br/>R starts at 10km; expands +10km up to 100km
    end

    Note over Svc: Sort matched pool by highest<br/>shared skill proficiency score
    Svc-->>Ctrl: Ranked List of Matching Collaborators
    Ctrl-->>Creator: 200 OK (Clean Deck of Candidates)

    Creator->>Creator: User Swipes Right on Match Candidate
    Creator->>Supa: INSERT into matches (user_id, target_id, direction='right')
    Creator->>Supa: SELECT reciprocal right-swipe
    alt Mutual Match Confirmed!
        Supa-->>Creator: Reciprocal match found
        Creator->>Creator: Trigger MatchOverlay celebration & open chat
    end
Loading

Dynamic Geolocation Expansion Pipeline

flowchart TD
    Start(["Start Match Query"]) --> CheckSkills{"Does user have skills?"}
    
    CheckSkills -- No --> Fallback50["Return top 50 Global Featured Profiles"]
    CheckSkills -- Yes --> QueryDB["Fetch all candidates sharing β‰₯ 1 Skill"]

    QueryDB --> InitRadius["Set initialRadius = 10 km"]
    InitRadius --> CalcDist["Compute Haversine Geodesic Distance<br/>for all candidates"]
    CalcDist --> FilterDist["Filter candidates where distance ≀ currentRadius"]

    FilterDist --> CountCheck{"Matches count β‰₯ 3<br/>OR currentRadius β‰₯ 100km?"}
    
    CountCheck -- No --> Expand["Expand Radius: currentRadius += 10 km"]
    Expand --> CalcDist

    CountCheck -- Yes --> EmptyCheck{"Are matches empty?"}

    EmptyCheck -- Yes --> GlobalSort["Sort all global candidates by proficiency<br/>(Fallback Mode)"]
    EmptyCheck -- No --> LocalSort["Sort local candidates by highest<br/>shared proficiency score (3 > 2 > 1)"]

    GlobalSort --> ReturnResults(["Return Top Collaborators Deck"])
    LocalSort --> ReturnResults

    style Start fill:#5200ff,stroke:#5200ff,color:#ffffff
    style ReturnResults fill:#3cffd0,stroke:#3cffd0,color:#000000
    style CheckSkills fill:#1e1e38,stroke:#3cffd0,color:#ffffff
    style CountCheck fill:#1e1e38,stroke:#ffb454,color:#ffffff
Loading

🎯 Use Case Diagrams

Primary Use Case Diagram

flowchart TB
    subgraph Actors["System Actors"]
        Creator(("🎨 Creator / Dev"))
        OAuthProv(("πŸ”‘ OAuth Provider<br/>(Google / GitHub)"))
        MatchEngine(("βš™οΈ Matching Engine"))
        SupaRT(("⚑ Supabase Broker"))
    end

    subgraph UseCases["SkillShare Core Use Cases"]
        UC1["UC1: Sign in via OAuth / Email"]
        UC2["UC2: Bypass In-App Webview Block"]
        UC3["UC3: Complete Skill & Location Setup"]
        UC4["UC4: Accept Platform Terms & Conditions"]
        UC5["UC5: Discover Nearby Collaborators"]
        UC6["UC6: Swipe Right / Left on Profile Cards"]
        UC7["UC7: Trigger Mutual Match Overlay"]
        UC8["UC8: Exchange Instant Real-Time Messages"]
        UC9["UC9: Attach Images & Project Files"]
        UC10["UC10: Create Interactive Chat Polls"]
        UC11["UC11: Schedule Collaboration Events"]
        UC12["UC12: Manage Skills & Profile Portfolio"]
    end

    Creator --> UC1 & UC2 & UC3 & UC4 & UC5 & UC6 & UC7 & UC8 & UC9 & UC10 & UC11 & UC12
    UC1 --> OAuthProv
    UC5 --> MatchEngine
    UC8 & UC9 & UC10 & UC11 --> SupaRT

    style Actors fill:#161626,stroke:#3cffd0,color:#ffffff
    style UseCases fill:#1e1e38,stroke:#5200ff,color:#ffffff
Loading

Use Case: Creator Discovery & Swiping

flowchart LR
    C(("Creator"))

    C --> UC1["Open Explore Feed"]
    C --> UC2["Transmit GPS Coordinates (lat/lng)"]
    C --> UC3["Inspect Candidate Skills & Bio"]
    C --> UC4["Drag Card Left (PASS)"]
    C --> UC5["Drag Card Right (MATCH)"]
    C --> UC6["View Reciprocal Match Modal"]

    UC1 -.-> UC2
    UC3 -.-> UC4
    UC3 -.-> UC5
    UC5 -- "if mutual" --> UC6
Loading

Use Case: Real-Time Chat & Collaboration

flowchart LR
    C(("Matched Creator"))

    C --> UC1["Select Match Thread"]
    C --> UC2["Send Direct Message"]
    C --> UC3["Upload Media / Mockups"]
    C --> UC4["Dispatch Poll to Chat"]
    C --> UC5["Schedule Project Call"]
    C --> UC6["Send Visual Reaction Sticker"]

    UC1 --> UC2 & UC3 & UC4 & UC5 & UC6
Loading

🧠 Algorithmic Core β€” Haversine Match Engine

The matchmaking core is implemented in Java inside MatchService.java. It orchestrates a spatial-proficiency recommendation pipeline:

1. The Haversine Geodesic Formula

To accurately compute distance between two latitude and longitude points on the spherical Earth surface without spherical projection distortion:

$$\Delta\text{lat} = \text{lat}_2 - \text{lat}_1$$

$$\Delta\text{lon} = \text{lon}_2 - \text{lon}_1$$

$$a = \sin^2\left(\frac{\Delta\text{lat}}{2}\right) + \cos(\text{lat}_1) \cdot \cos(\text{lat}_2) \cdot \sin^2\left(\frac{\Delta\text{lon}}{2}\right)$$

$$c = 2 \cdot \text{atan2}\left(\sqrt{a}, \sqrt{1 - a}\right)$$

$$d = R \cdot c \quad (R = 6371\text{ km})$$

2. Recursive Radius Expansion

Instead of querying a fixed arbitrary distance, the engine implements progressive radius widening:

  • Phase 1: Filters candidate matches within $10\text{ km}$.
  • Phase 2: If the returned candidate count is $&lt; 3$, the radius is expanded recursively by $+10\text{ km}$.
  • Phase 3: The expansion ceiling caps at $100\text{ km}$ to preserve local context.
  • Phase 4: If no creators exist within $100\text{ km}$, the system falls back to top global profiles, ranking them purely by shared skill proficiency.

3. Proficiency Matrix Scoring

Within candidate groups, results are ranked by the maximum skill proficiency shared between the current user and the candidate:

  • Advanced = 3 points
  • Intermediate = 2 points
  • Beginner = 1 point

πŸ” Security & Authentication Pipeline

SkillShare implements an enterprise-grade stateless security architecture linking the React frontend with the Spring Boot backend:

flowchart LR
    Client["React Frontend"] -- "1. OAuth Login" --> Supabase["Supabase Auth"]
    Supabase -- "2. Issues JWT" --> Client
    Client -- "3. REST Request with Bearer JWT" --> SpringSec["Spring Security Filter"]
    SpringSec -- "4. Validates Token" --> Decoder{"Multi-Algorithm Decoder"}
    Decoder -- "ES256 (JWKS)" --> OK["Authenticated Session"]
    Decoder -- "RS256 (JWKS)" --> OK
    Decoder -- "HS256 (Secret Fallback)" --> OK
Loading
  • Multi-Algorithm Fallback: Handles Supabase's migration between ES256 and RS256 asymmetric keys using Supabase's live .well-known/jwks.json endpoint, with an optional symmetric HS256 secret fallback.
  • CORS Protection: Explicit cross-origin allowance for Vercel production domains and local Vite dev hosts with credential forwarding.
  • Terms & Conditions Security Gate: Newly authenticated users must acknowledge platform safety guidelines before accessing discovery routes.

πŸ›‘οΈ In-App Browser OAuth Mitigation

Major mobile social apps (LinkedIn, Instagram, Twitter/X) render shared links inside embedded WebViews that Google and GitHub actively block with disallowed_useragent errors. SkillShare implements proactive defense:

  1. Intelligent User-Agent Detection:
    const ua = navigator.userAgent || navigator.vendor || window.opera;
    const isInApp = /LinkedInApp|FBAV|FBAN|Instagram|Twitter|WebView|wv/i.test(ua);
  2. Context-Aware Alert Banner: Displays an immediate warning at the top of the viewport when an in-app browser is detected.
  3. Modal Redirection Guidance: Clicking social login triggers an illustrated 3-step guide explaining how to tap β€’β€’β€’ and select "Open in Browser" (Safari / Chrome).

πŸ› οΈ Tech Stack

Layer Technology Version Key Purpose
Frontend Framework React 19.2.5 Next-generation declarative UI with concurrent rendering
Build Tool Vite 8.0.9 Ultra-fast HMR and optimized production bundling
Routing React Router 7.14.2 Declarative SPA client-side routing & navigation guards
Animation Framer Motion 12.38.0 Production gesture animation, physics drags, and page transitions
Gesture Engine @use-gesture/react 10.3.1 Multi-touch swipe coordination
Icons Lucide React 1.8.0 Clean, modern feather icon set
Backend Framework Spring Boot 4.0.5 Enterprise RESTful web services & dependency injection
Language Java 17 (LTS) High-performance compiled backend runtime
Security Spring Security 6.x Stateless OAuth2 JWT resource server validation & CORS
Database PostgreSQL / H2 16 Relational persistence for profiles, skills, and matches
ORM / Data Access Spring Data JPA 4.x Hibernate abstraction for relational database queries
Auth & Sockets Supabase JS SDK 2.104.0 OAuth authentication & low-latency WebSocket messaging
Containerization Docker Multi-stage Containerized backend packaging with Eclipse Temurin JRE
Hosting Vercel & Docker Production Edge CDN frontend deployment and containerized backend

πŸ“‚ Project Structure

skillshare-app-vercel/
β”œβ”€β”€ Dockerfile                             # Multi-stage Maven build & lightweight JRE runtime
β”œβ”€β”€ mvnw / mvnw.cmd                        # Cross-platform Maven wrapper scripts
β”œβ”€β”€ pom.xml                                # Maven POM dependencies (Spring Boot, Security, JPA)
β”œβ”€β”€ setup-env.ps1                          # Environment configuration bootstrap script
β”‚
β”œβ”€β”€ src/main/java/com/example/skillshare/  # Spring Boot Backend Codebase
β”‚   β”œβ”€β”€ SkillshareApplication.java         # Main Application Entrypoint
β”‚   β”œβ”€β”€ config/
β”‚   β”‚   └── SecurityConfig.java            # JWT Decoder, CORS Policy & SecurityFilterChain
β”‚   β”œβ”€β”€ controller/
β”‚   β”‚   └── MatchController.java           # GET /api/matches/discover Endpoint
β”‚   β”œβ”€β”€ model/
β”‚   β”‚   β”œβ”€β”€ User.java                      # JPA Entity for Profiles table
β”‚   β”‚   └── UserSkill.java                 # JPA Entity for Skills & Proficiency
β”‚   β”œβ”€β”€ repository/
β”‚   β”‚   └── UserRepository.java            # Spring Data JPA Repository with custom queries
β”‚   └── service/
β”‚       └── MatchService.java              # Haversine dynamic radius & proficiency sorting
β”‚
β”œβ”€β”€ src/main/resources/
β”‚   β”œβ”€β”€ application.properties             # Spring configuration (PostgreSQL / H2 profiles)
β”‚   └── schema.sql                         # Database schema definition
β”‚
└── frontend/                              # React 19 Frontend SPA
    β”œβ”€β”€ index.html                         # HTML entrypoint with SEO & OG meta tags
    β”œβ”€β”€ package.json                       # NPM dependencies & scripts
    β”œβ”€β”€ vite.config.js                     # Vite build configuration
    β”œβ”€β”€ vercel.json                        # Single-Page-App routing rewrites for Vercel
    β”œβ”€β”€ public/
    β”‚   β”œβ”€β”€ favicon.svg                    # SVG brand icon
    β”‚   β”œβ”€β”€ icons.svg                      # System icon sprites
    β”‚   └── og-image.png                   # High-res social preview card
    └── src/
        β”œβ”€β”€ App.jsx                        # Global routing, auth observer & terms gate
        β”œβ”€β”€ index.css                      # Design tokens, typography & CSS variables
        β”œβ”€β”€ supabaseClient.js              # Supabase client initialization
        β”œβ”€β”€ components/
        β”‚   β”œβ”€β”€ Experience.jsx             # Card deck state manager & discovery loader
        β”‚   β”œβ”€β”€ LandingPage.jsx            # Hero banner, email/OAuth form & webview modal
        β”‚   β”œβ”€β”€ MatchOverlay.jsx           # Mutual match celebration popup
        β”‚   β”œβ”€β”€ Navbar.jsx                 # Top bar + mobile sticky bottom tab navigation
        β”‚   β”œβ”€β”€ SwipeCard.jsx              # Motion card with drag physics & gesture stamps
        β”‚   └── TermsModal.jsx             # User agreement modal
        └── pages/
            β”œβ”€β”€ Explore.jsx                # Full-bleed swipe discovery view
            β”œβ”€β”€ Home.jsx                   # Community feed & featured creators
            β”œβ”€β”€ Matches.jsx                # Reciprocal matches gallery
            β”œβ”€β”€ Messages.jsx               # Real-time chat with media, polls & events
            β”œβ”€β”€ Profile.jsx                # User profile management & tag editor
            β”œβ”€β”€ SetupProfile.jsx           # Initial onboarding flow (skills + geolocation)
            └── UserProfile.jsx            # Dynamic creator profile viewer

πŸš€ Getting Started

Prerequisites

  • Java 17+ & Maven 3.9+ (or use included ./mvnw)
  • Node.js 18+ & npm
  • A Supabase account (Free Tier works great) for Auth, Realtime, and PostgreSQL

Quick Start

1. Clone the Repository

git clone https://github.com/PG300604/skillshare-app-vercel.git
cd skillshare-app-vercel

2. Start the Backend API

By default, the backend can run in development mode with an in-memory H2 database seeded with sample creator profiles:

# On Linux / macOS:
./mvnw spring-boot:run

# On Windows PowerShell:
.\mvnw.cmd spring-boot:run

The Spring Boot backend will start at http://localhost:8080.

3. Start the Frontend Application

cd frontend
npm install
npm run dev

The Vite dev server will launch at http://localhost:5173.


🐳 Docker Deployment

You can build and package the backend into an optimized Docker container:

# Build the Docker image
docker build -t skillshare-backend:latest .

# Run the container
docker run -p 8080:8080 \
  -e SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_SECRET="your-jwt-secret" \
  skillshare-backend:latest

βš™οΈ Environment Variables

Frontend (frontend/.env.local)

# Supabase Configuration
VITE_SUPABASE_URL=https://your-project-ref.supabase.co
VITE_SUPABASE_ANON_KEY=eyJhbGciOi...your-anon-key

# Backend API Endpoint
VITE_API_URL=http://localhost:8080

# Design System Theme
VITE_THEME=warm-sunset

Backend (src/main/resources/application.properties or OS Environment)

# Server Port
server.port=8080

# Supabase JWT Secret (Fallback for HS256)
spring.security.oauth2.resourceserver.jwt.secret=your-supabase-jwt-secret

# Production PostgreSQL Database (Optional for local dev, uses H2 if omitted)
spring.datasource.url=jdbc:postgresql://your-db-host:5432/postgres
spring.datasource.username=postgres
spring.datasource.password=your-password
spring.jpa.hibernate.ddl-auto=update

πŸ“ˆ Roadmap

  • AI Skill Complementarity Engine: Vector embeddings comparing GitHub repositories to recommend non-obvious cross-discipline collaborators (e.g. AI Prompt Engineer + 3D Blender Artist).
  • Audio/Video Collab Rooms: Integrated WebRTC peer-to-peer rooms for instant voice and video brainstorm sessions.
  • Dynamic WebSockets: Server-sent notifications for incoming match alerts when the app is running in the background.
  • PostgreSQL Full-Text Search: In-database trigram indexing for instant skill tag auto-complete and search.
  • Endorsements & Verified Portfolios: Peer verification badges and GitHub repository showcase integrations.
  • React Native Mobile App: Standalone iOS and Android native clients compiled from the React codebase.

βœ’οΈ Author

Priyanshu Ghosh


πŸ“„ License

This project is licensed under the MIT License β€” see the LICENSE file for full details.

About

πŸš€ Swipe. Match. Collaborate. A geolocation-aware skill-matching & networking platform for creators and developers built with React 19, Spring Boot, PostgreSQL, and Supabase.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages