A full-stack ride-sharing platform built for university students to coordinate safe, smart, and efficient campus transportation.
- π JWT Auth (Access + Refresh tokens)
- π¬ Real-time Chat (Socket.IO)
- π§ Smart Ride Matching (by destination/time)
- π± Responsive UI (TailwindCSS + Framer Motion)
- π Admin Dashboard (with charts + analytics)
- π‘οΈ Secure Backend (Zod, CORS, Bcrypt, Helmet)
Frontend
- React + TypeScript + Vite
- TailwindCSS, Framer Motion
- React Router, Axios
- React Hook Form + Zod
- Recharts (Admin Analytics)
Backend
- Node.js + Express
- MySQL (Relational DB)
- Socket.IO (Live Chat)
- JWT + Bcrypt + Zod
- Helmet + CORS + Rate Limiting
users
- Auth + role-based access (student
,admin
)rides
- Time window + destination + statusride_participants
- Join/leave ride logicchat_messages
- Real-time ride-specific messaging
# 1. MySQL Setup
mysql -u root -p
CREATE DATABASE campus_rideshare;
# Import schema.sql
# 2. Backend
cd backend
cp .env.example .env # Add MySQL & JWT configs
npm install && npm run dev
# 3. Frontend
cd campus-ride-share
npm install && npm run dev