Skip to content
/ Cabify Public

CABIFY is a comprehensive full-stack cab booking platform that connects riders with drivers in real-time. Built with modern web technologies, it offers a seamless experience for both users and drivers through an intuitive interface and robust backend architecture.

Notifications You must be signed in to change notification settings

Itz-snj/Cabify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hey, Welcome to Apertre 2.0! 👋

It is an open source event, make sure to follow the issue tags before commiting and also make sure to join the discord server. https://discord.gg/A9QpVUazNC

FullStack Project - Cab Booking System

This is a full-stack project for a cab booking system. It includes both the frontend and backend components.

Mentor

Vedansh Jain

  • Linkedin: link
  • Role: Project Mentor
  • Contact: For any queries related to the project, feel free to reach out on Discord or create an issue on GitHub.

Installation

  1. Clone the repository:

    git clone https://github.com/Itz-snj/Fullstack1.git
    cd Fullstack1/backend
  2. Install dependencies:

    npm install
  3. Create a .env file in the backend directory and add:

    PORT=4000
    MONGO_URI=your_mongodb_connection_string
    JWT_SECRET=your_jwt_secret
  4. Start the server:

    npm start

API Endpoints

User Registration

  • URL: /user/register
  • Method: POST
  • Body:
    {
        "name": {
            "firstname": "John",
            "middlename": "Doe",
            "lastname": "Smith"
        },
        "email": "[email protected]",
        "password": "yourpassword"
    }

User Login

  • URL: /user/login
  • Method: POST
  • Body:
    {
        "email": "[email protected]",
        "password": "yourpassword"
    }

Environment Variables

  • PORT: Server port.
  • MONGO_URI: MongoDB connection string.
  • JWT_SECRET: JWT secret key.

Project Structure

FullStack1/
├── backend/
│   ├── controllers/
│   │   ├── user.controller.js
│   │   └── captain.controller.js
│   ├── db/
│   │   └── db.js
│   ├── middlewares/
│   │   └── auth.middleware.js
│   ├── models/
│   │   ├── user.model.js
│   │   ├── captain.model.js
│   │   └── blacklist.token.model.js
│   ├── routes/
│   │   ├── user.routes.js
│   │   └── captain.routes.js
│   ├── services/
│   │   └── user.service.js
│   ├── .env
│   ├── app.js
│   ├── server.js
│   └── package.json
│
├── frontend/
│   ├── public/
│   │   └── index.html
│   ├── src/
│   │   ├── api/
│   │   │   └── api.js
│   │   ├── components/
│   │   │   ├── signup.jsx
│   │   │   └── ui/
│   │   │       ├── input.jsx
│   │   │       └── label.jsx
│   │   ├── lib/
│   │   │   └── utils.js
│   │   ├── pages/
│   │   │   └── UserSignUp.jsx
│   │   ├── App.jsx
│   │   └── main.jsx
│   ├── .env
│   ├── index.html
│   ├── package.json
│   ├── tailwind.config.js
│   └── vite.config.js
│
└── README.md

Added a shell script to append files in github and stage it from local to remote git repository

About

CABIFY is a comprehensive full-stack cab booking platform that connects riders with drivers in real-time. Built with modern web technologies, it offers a seamless experience for both users and drivers through an intuitive interface and robust backend architecture.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published