πŸ”΄ Let's build a Full Stack Car Rental App with REACT NATIVE using Node.js | PostgreSQL

Published: 01 January 1970
on channel: Sujan Anand
4,114
215

πŸš— Built a complete production-grade self-drive car rental app called DriveIndia β€” inspired by Myles. Full stack with React Native frontend, Node.js + Express + PostgreSQL backend, JWT authentication, double-booking prevention, dynamic pricing, and 300+ cars across 3 cities.

source code - https://sujan45.gumroad.com/l/rlhwio

In this video, I walk through everything end to end β€” from database design to security, from API routes to React Native screens. If you want to learn how to build a real-world full stack app, this is for you.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━




━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

πŸ› οΈ TECH STACK

Frontend:
Expo React Native + TypeScript
NativeWind (Tailwind CSS for RN)
Zustand for global state
Expo Router (file-based routing)
Axios with auto-refresh interceptor
Expo SecureStore for token storage

Backend:
Node.js + Express + TypeScript
PostgreSQL 16 with Prisma ORM v7
JWT with refresh token rotation
Zod schema validation
Winston structured logging
bcryptjs password hashing
Helmet + CORS + Rate Limiting

Database:
7 tables (Users, RefreshTokens, Cities, Sublocations, Cars, Bookings)
3 cities, 75 pickup locations, 300 cars

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

πŸ”₯ FEATURES BUILT

βœ… Full authentication flow with JWT + Refresh Token rotation
βœ… 9 mobile screens with premium dark UI
βœ… City and pickup location selection with search
βœ… Date/time pickers for booking duration
βœ… Car listing with filters (fuel, transmission, seats)
βœ… Sort by price or seats
βœ… Full car detail page with specs and pricing
βœ… Real-time double-booking prevention
βœ… Dynamic pricing (hourly vs daily)
βœ… Booking confirmation with full breakdown
βœ… Animated success screen
βœ… My Bookings with tabs (All/Confirmed/Active/Completed/Cancelled)
βœ… Cancel booking with confirmation alert
βœ… Pull to refresh
βœ… Profile screen with stats
βœ… Bottom tab navigation
βœ… Auto token refresh on 401
βœ… Secure storage for tokens
βœ… 300 real cars with images from CarWale

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

πŸ—οΈ ARCHITECTURE HIGHLIGHTS

πŸ“Œ Double-Booking Prevention
Used Prisma $transaction with three overlap conditions and an atomic re-check inside the transaction to prevent race conditions when two users tap Book at the same time.

πŸ“Œ JWT Token Rotation
Refresh tokens stored in DB and rotated on every refresh β€” old token deleted, new one issued. Prevents replay attacks.

πŸ“Œ Dynamic Pricing Engine
Bookings ≀ 12 hours use hourly rate, anything longer switches to daily pricing with ceiling rounding. KM limit scales with duration.

πŸ“Œ Type Safety End to End
TypeScript on both frontend and backend. Prisma generates fully typed DB queries.

πŸ“Œ Security Layers
Helmet (15 security headers), CORS restrictions, rate limiting per IP, Zod input validation, bcrypt password hashing with configurable rounds.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

πŸ“š WHAT YOU'LL LEARN

How to structure a full stack project from scratch
Setting up PostgreSQL with Prisma ORM
Building secure JWT authentication with refresh tokens
Designing REST APIs with Express and TypeScript
Preventing race conditions with database transactions
Building beautiful UIs with React Native + NativeWind
State management with Zustand
File-based navigation with Expo Router
Implementing axios interceptors for auto token refresh
Date/time pickers in React Native
Bottom sheet modals
Pull-to-refresh and tab navigation
Production-grade error handling and logging

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━


πŸ’¬ CONNECT WITH ME

πŸ”” Subscribe for more full stack tutorials: Β Β Β /Β @sujananand6155Β Β 
πŸ“Έ Instagram: @sujananand

πŸ™ If you found this video valuable:
πŸ‘ LIKE the video
πŸ’¬ COMMENT what feature you want next
πŸ”” SUBSCRIBE for more projects like this
πŸ“€ SHARE with someone learning full stack

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

#ReactNative #NodeJS #FullStack #PostgreSQL #Prisma #Expo #JavaScript #TypeScript #WebDevelopment #MobileApp #CarRental #JWT #FullStackDeveloper #CodingTutorial #LearnToCode


On this page of the site you can watch the video online πŸ”΄ Let's build a Full Stack Car Rental App with REACT NATIVE using Node.js | PostgreSQL with a duration of hours minute second in good quality, which was uploaded by the user Sujan Anand 01 January 1970, share the link with friends and acquaintances, this video has already been watched 4,114 times on youtube and it was liked by 215 viewers. Enjoy your viewing!