Skip to content

anushkaasarraf/NextTrip-MERN-Stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NextTrip

It is a full-stack ride-booking web application inspired by Uber, built using the MERN stack. It offers a seamless experience for both riders and drivers with real-time tracking, Google Maps integration, and secure authentication.


Tech Stack

Layer Technology
Frontend React.js, Tailwind CSS
Backend Node.js, Express.js
Database MongoDB
Real-time Socket.io
Maps Google Maps API

Features

  • User & Captain (driver) authentication with JWT
  • Live location suggestions powered by Google Maps
  • Distance & time calculation between pickup and drop
  • Real-time ride tracking with Socket.io
  • Clean and responsive UI for both riders and drivers
  • Separate flows for Riders and Captains

Project Structure

Uber_clone/
├── nextTrip/
│   ├── Backend/
│   │   ├── controllers/
│   │   ├── models/
│   │   ├── routes/
│   │   ├── middlewares/
│   │   └── server.js
│   ├── frontend/
│   │   ├── src/
│   │   │   ├── pages/
│   │   │   ├── context/
│   │   │   └── main.jsx
│   │   └── vite.config.js
├── .gitignore
├── package.json
└── README.md

Getting Started

Prerequisites

  • Node.js installed
  • MongoDB connection (local or Atlas)
  • Google Maps API Key

1. Clone the repository

git clone https://github.com/anushkaasarraf/NextTrip-MERN-Stack.git
cd NextTrip-MERN-Stack

2. Setup Backend

cd nextTrip/Backend
npm install

Create a .env file in the Backend folder:

PORT=4000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
GOOGLE_MAPS_API_KEY=your_google_maps_key

Start the backend:

npx nodemon server.js

3. Setup Frontend

cd nextTrip/frontend
npm install
npm run dev

Pages

Page Description
Start Landing/welcome page
User Login / Signup Rider authentication
Captain Login / Signup Driver authentication
Home Ride booking screen
Riding Active ride screen for user
Captain Home Driver dashboard
Captain Riding Active ride screen for captain

Acknowledgements

Built by following the Sheryians Coding School MERN Stack Masterclass. Extended and customized independently as a personal project — nextTrip.


License

This project is licensed under the MIT License.

About

NextTrip is a full-stack ride-booking web application inspired by Uber, built using the MERN stack. It offers a seamless experience for both riders and drivers with real-time tracking, Google Maps integration, and secure authentication.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Contributors

Languages