https://github.com/itz-snj/cabify
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.
https://github.com/itz-snj/cabify
apertre25 express expressjs javascript microservices open-source react reactjs socket-io tailwindcss webapp website
Last synced: 9 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/itz-snj/cabify
- Owner: Itz-snj
- Created: 2025-03-07T13:29:46.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-04-13T19:27:01.000Z (10 months ago)
- Last Synced: 2025-04-30T14:28:11.577Z (9 months ago)
- Topics: apertre25, express, expressjs, javascript, microservices, open-source, react, reactjs, socket-io, tailwindcss, webapp, website
- Language: JavaScript
- Homepage: https://cabify-ten.vercel.app
- Size: 4.43 MB
- Stars: 3
- Watchers: 1
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://www.linkedin.com/in/vedanshcode/)
- 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:
```bash
git clone https://github.com/Itz-snj/Fullstack1.git
cd Fullstack1/backend
```
2. Install dependencies:
```bash
npm install
```
3. Create a `.env` file in the [backend](http://_vscodecontentref_/0) directory and add:
```properties
PORT=4000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
```
4. Start the server:
```bash
npm start
```
## API Endpoints
### User Registration
- **URL:** `/user/register`
- **Method:** `POST`
- **Body:**
```json
{
"name": {
"firstname": "John",
"middlename": "Doe",
"lastname": "Smith"
},
"email": "john.doe@example.com",
"password": "yourpassword"
}
```
### User Login
- **URL:** `/user/login`
- **Method:** `POST`
- **Body:**
```json
{
"email": "john.doe@example.com",
"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