A Fullstack GraphQL Airbnb Clone with React and React Native
by benawadTypeScript
Last 12 weeks · 0 commits
2 of 6 standards met
Major Changes: Replaced GraphQL with Express REST API Added Athlete, PerformanceStat, and Video entities Implemented weighted star rating system (1-5 stars) Added user roles: ATHLETE, COACH, BRAND, ADMIN Created comprehensive API endpoints for athletes, ratings, auth Added middleware: auth, role-based access, validation, error handling Converted frontend controllers from Apollo/GraphQL to Axios/REST Created AthleteDirectory and AthleteProfile UI components Added rating.service.ts with weighted algorithm Security Fixes: Session secret from environment variable (not hardcoded) Secure cookies with sameSite protection Role whitelist prevents privilege escalation Input sanitization prevents mass assignment Stronger password policy (8+ characters) Production sync disabled in TypeORM API Endpoints: POST/GET /api/v1/auth/ (register, login, logout, password reset) GET/POST/PUT/DELETE /api/v1/athletes/ (CRUD + search) GET/PUT/POST /api/v1/ratings/* (rating breakdown, update, recalculate) Rating Algorithm: Performance: 40% Physical: 20% Academic: 15% Social: 15% Evaluation: 10%
Repository: benawad/fullstack-graphql-airbnb-clone. Description: A Fullstack GraphQL Airbnb Clone with React and React Native Stars: 1696, Forks: 444. Primary language: TypeScript. Languages: TypeScript (96.3%), HTML (1.3%), CSS (1.1%), Shell (0.5%), Dockerfile (0.4%). License: MIT. Topics: graphql, nodejs, react-native, reactjs, typescript. Open PRs: 3, open issues: 20. Last activity: 3y ago. Community health: 42%. Top contributors: benawad.