npm install
cd backend && npm install && cd ..
cd frontend && npm install && cd ..
npx prisma db push --schema=backend/prisma/app.schema.prisma
Setup environment variables:
Frontend (frontend/.env.local):
cp frontend/.env.example frontend/.env.local
# Edit .env.local to set VITE_API_URL=http://localhost:5001
Start the application:
- Backend:
cd backend && npm start(port 5001) - Frontend:
cd frontend && npm run dev(port 3000)
For Vercel deployment instructions, see DEPLOYMENT.md
Quick deploy:
- Deploy backend first, note the URL
- Set
VITE_API_URLin frontend Vercel environment variables - Deploy frontend
##For Evaluators (Quick Evaluation Setup)
The .env files are configured with working credentials. Simply copy and paste the following into your .env files in the root and backend directories:
DATABASE_URL="postgresql://neondb_owner:npg_iqFxJjvm62eV@ep-polished-bird-a4gytl44.us-east-1.aws.neon.tech/neondb?sslmode=require"
DATABASE_URL_APP="postgresql://neondb_owner:npg_iqFxJjvm62eV@ep-polished-bird-a4gytl44.us-east-1.aws.neon.tech/neondb?sslmode=require"
DATABASE_URL_APP="postgresql://neondb_owner:npg_iqFxJjvm62eV@ep-polished-bird-a4gytl44.us-east-1.aws.neon.tech/neondb?sslmode=require"
JWT_SECRET="rentmyride-secret-key-2025"
PORT=5001
After setting up the .env files, run the quick setup commands above and start both services. The application will be fully functional.
- Customer Login
- Owner Login
- Terms & Conditions Page (View-only)
- Navigation bar
- Quick access to profile, search, bookings
- Featured cities or offers (Optional)
- Personal details
- Uploaded documents
- Past bookings & travel logs
- Picture uploads for memories
- Rating history (cars they rated)
- Search by city → fetch businesses from DB
Google-like business list showing:
- Name of rental business
- Rating
- Price range
- Owner name
- Basic details
- Thumbnail image
- Business information
- Ratings & Reviews
- Car listing cards
- Pricing & availability
- Optional: Chat section with the business
- Car details
- Pricing per day
- Availability calendar
Auto-filled fields from customer profile:
- Customer details
- Pickup location
- Start & end dates
- Additional info → Sends booking request to owner
- Payment flow begins (integration pending)
- Rate cars from booking history
- Travel log of places visited
- Upload travel pictures
- Complaint Box (customer → business)
- Notification bar
- Reminders (pending documents, platform notifications)
- Line graph showing business growth
- Ratings overview
- Review summary
-
Requests grouped as:
- Pending
- Active rentals
- Completed
- Booked cars displayed using stickers on specific dates
- Free cars displayed with status filters
- Reviews
- Ratings
- Grey areas (warning flags, pending complaints)
- Owners can see customer history
- View customer ratings from previous owners
- Upload & manage documents
- Document expiry reminders
- Vehicle status (active / inactive)
- Map view
- Enter tracking ID from GPS device
- Show car’s live or last-known location
- File complaints
- View complaint status
-
Complaint Box on both sides
-
Types of complaints:
- Damage
- Legal fine not paid
- False charges
- Overcharging by owner
-
Only users with completed business history can file complaints
-
Complaints can be filed only within 5 days
-
Complaints categorized as:
- Pending
- Under Review
- Resolved
-
If found non-guilty → complaint removed
-
If dispute ongoing → chat history remains longer
🔧 Most complex part of mid-sem work
- Customer ↔ Owner chat (like WhatsApp)
- Share photos/videos
- No option to delete or edit messages
- Messages auto-deleted after 15 days
- If a case/complaint is active → exempt from deletion
- Messages older than 15 days → moved to
messages_archive - Keeps main message table small
npm run archive:run
Runs daily at 02:00 UTC:
npm run archive:schedule
.env
DATABASE_URL_APP=postgres://...
TZ=UTC
docker compose -f devops/docker-compose.yml up -d db api
API Health:
http://localhost:5001/api/health
docker compose -f devops/docker-compose.yml up -d db api frontend
Frontend:
http://localhost/
docker build -f devops/Dockerfile -t rentmyride-unified .
docker run -p 5001:5001 rentmyride-unified
docker compose -f devops/docker-compose.yml down
docker compose -f devops/docker-compose.yml down -v # remove DB data
chmod +x devops/prepush-verify.sh
./devops/prepush-verify.sh
Runs: ✓ DB spin-up ✓ Prisma schema push ✓ SQL patches ✓ DB tests ✓ Jest tests ✓ Summary