{"id":18106986,"url":"https://github.com/noobmaster432/gocargo","last_synced_at":"2026-04-15T05:32:01.916Z","repository":{"id":259250549,"uuid":"876799816","full_name":"noobmaster432/gocargo","owner":"noobmaster432","description":"Implementation of a highly scalable logistics platform that allows users to book transportation services for moving goods. The platform connects users who need to transport items with a fleet of drivers, providing real-time availability, pricing, and tracking of vehicles.","archived":false,"fork":false,"pushed_at":"2024-10-23T14:46:02.000Z","size":457,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T06:46:12.446Z","etag":null,"topics":["docker","jwt","mongodb","nodejs-express","react","shadcn-ui","typescript","vercel","vite"],"latest_commit_sha":null,"homepage":"https://gocargo.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noobmaster432.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-22T15:18:10.000Z","updated_at":"2024-10-23T15:06:05.000Z","dependencies_parsed_at":"2024-10-30T22:35:59.591Z","dependency_job_id":null,"html_url":"https://github.com/noobmaster432/gocargo","commit_stats":null,"previous_names":["noobmaster432/gocargo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/noobmaster432/gocargo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noobmaster432%2Fgocargo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noobmaster432%2Fgocargo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noobmaster432%2Fgocargo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noobmaster432%2Fgocargo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noobmaster432","download_url":"https://codeload.github.com/noobmaster432/gocargo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noobmaster432%2Fgocargo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31828531,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"online","status_checked_at":"2026-04-15T02:00:06.175Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","jwt","mongodb","nodejs-express","react","shadcn-ui","typescript","vercel","vite"],"created_at":"2024-10-31T23:08:51.425Z","updated_at":"2026-04-15T05:32:01.824Z","avatar_url":"https://github.com/noobmaster432.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Cargo\n## On-Demand Logistics Platform for Goods Transportation\n\nGo Cargo is an implementation of a highly scalable logistics platform that allows users to book transportation services for moving goods. The platform connects users who need to transport items with a fleet of drivers, providing real-time availability, pricing, and tracking of vehicles.\n\n## Table of Contents\n\n- [Features](#features)\n- [Technology Stack](#technology-stack)\n- [Demonstration](#demonstration)\n- [Architecture](#architecture)\n- [Setup and Installation](#setup-and-installation)\n- [Usage](#usage)\n- [Future Improvements](#future-improvements)\n- [License](#license)\n\n## Features\n\n### User Features\n- Book a vehicle for transporting goods\n- Real-time tracking of driver's location\n- Upfront price estimation\n\n### Driver Features\n- Receive and accept booking requests\n- Update job status (e.g., pending, in progress, completed)\n\n### Admin Features\n- Fleet management\n- Basic analytics\n\n## Technology Stack\n\n- Frontend: React.js with TypeScript\n- Backend: Node.js with Express.js\n- Database: MongoDB\n- Authentication: JSON Web Tokens (JWT)\n- Deployment: Docker, Vercel\n\n## Demonstration\n\n### Auth View\n---\n![gocargo vercel app_](https://github.com/user-attachments/assets/55231e81-9fa1-4916-9062-16a0faa7547e)\n\n![gocargo vercel app_ (1)](https://github.com/user-attachments/assets/c0a4a2b8-4727-4e93-ab88-f3ca62728de8)\n\n![gocargo vercel app_ (2)](https://github.com/user-attachments/assets/f78aaa72-4922-478d-a654-f9ddae50c393)\n\n---\n\n### Customer View\n---\n\n![gocargo vercel app_ (3)](https://github.com/user-attachments/assets/0238bb12-a457-4376-acdc-a808c05fb6d2)\n\n![gocargo vercel app_ (4)](https://github.com/user-attachments/assets/ca7162b8-4308-4661-97a1-d197f20a348f)\n\n![gocargo vercel app_ (5)](https://github.com/user-attachments/assets/194d7362-4a16-4ce2-a106-1cec8b087f9a)\n\n![gocargo vercel app_ (6)](https://github.com/user-attachments/assets/015d4474-6965-478b-935c-ab62c9c29599)\n\n![gocargo vercel app_ (7)](https://github.com/user-attachments/assets/41e662a9-1e84-4d58-8ec3-b66e4834896b)\n\n---\n\n### Driver View\n---\n\n![gocargo vercel app_ (8)](https://github.com/user-attachments/assets/7d39977b-8f8f-454b-9bb5-dd2a94136ea2)\n\n![gocargo vercel app_ (9)](https://github.com/user-attachments/assets/d151c56b-6564-47c7-a0fd-be0ea90a55e0)\n\n![gocargo vercel app_ (10)](https://github.com/user-attachments/assets/c4ba69b8-1e9b-4a6e-a580-6c3eabae4c47)\n\n![gocargo vercel app_ (11)](https://github.com/user-attachments/assets/0a9e2e9b-29d4-48e8-9d15-0156123f0c63)\n\n---\n\n### Admin View\n---\n\n![gocargo vercel app_ (12)](https://github.com/user-attachments/assets/b2666963-c713-4514-a241-408b6a00b3b9)\n\n![gocargo vercel app_ (13)](https://github.com/user-attachments/assets/05c93ac3-d698-42a2-9a2b-da80ce24f219)\n\n---\n\n## Architecture\n\nThe system is designed to handle 10,000 requests per second, with a registered base of 100,000 drivers and 50 million users globally. It uses a microservices architecture to ensure scalability and maintainability.\n\n![image](https://github.com/user-attachments/assets/795e1a92-0be2-4de8-96ac-32663ad6ccc1)\n\n\n### **Entities and Attributes:**\n\n1. **User**\n   - **Primary Key (PK)**: `_id` (unique identifier for each user).\n   - **Attributes**:\n     - `name`: The name of the user.\n     - `email`: User's email address.\n     - `password`: Encrypted password for authentication.\n     - `role`: Defines whether the user is a customer or a driver.\n     - `phone`: User’s contact number.\n     - `location`: The current or registered location of the user.\n     - `driverInfo`: Information relevant to the driver, such as driving license, certifications, etc. (likely relevant for users with the role \"driver\").\n\n2. **Booking**\n   - **Primary Key (PK)**: `_id` (unique identifier for each booking).\n   - **Attributes**:\n     - `pickupLocation`: Starting point of the journey.\n     - `dropoffLocation`: Destination of the journey.\n     - `vehicleType`: Type of vehicle requested for the booking (e.g., sedan, truck).\n     - `status`: Current status of the booking (e.g., pending, active, completed).\n     - `price`: The cost associated with the booking.\n     - `currentLocation`: Real-time location of the vehicle during the trip.\n   - **Foreign Keys (FK)**:\n     - `user`: References the **User** entity, indicating the customer who made the booking.\n     - `driver`: References the **User** entity, indicating the driver assigned to the booking.\n\n3. **Vehicle**\n   - **Primary Key (PK)**: `_id` (unique identifier for each vehicle).\n   - **Attributes**:\n     - `type`: Type of the vehicle (e.g., van, truck).\n     - `licensePlate`: Vehicle's unique registration number.\n     - `capacity`: The vehicle’s maximum load or passenger capacity.\n   - **Foreign Key (FK)**:\n     - `driver`: References the **User** entity (specifically a user with a driver role), indicating the driver who owns or is assigned to the vehicle.\n\n### **Relationships:**\n\n1. **User-to-Booking**:\n   - There is a **1-to-Many** relationship between the **User** and **Booking** entities:\n     - A single **User** (acting as a **customer**) can make many bookings.\n     - A single **User** (acting as a **driver**) can be assigned to multiple bookings.\n\n2. **User-to-Vehicle**:\n   - There is a **N-to-1** relationship between the **User** (with the **role** of a driver) and **Vehicle** entities:\n     - Each **driver** owns or is assigned to one or more **Vehicle**.\n\n### Summary of Relationships:\n- **User (customer)** to **Booking**: One user can create many bookings.\n- **User (driver)** to **Booking**: One driver can handle many bookings.\n- **User (driver)** to **Vehicle**: One driver owns or is assigned one or more vehicles.\n\n## Setup and Installation\n\n1. Clone the repository:\n   ```\n   git clone https://github.com/noobmaster432/gocargo.git\n   cd gocargo\n   ```\n\n2. Set up environment variables:\n   Create a `.env` file in the client and server directory and add the following:\n   ```\n   #server\n   MONGODB_URI=your_mongodb_connection_string\n   JWT_SECRET=your_jwt_secret\n   FRONTEND_URI=frontend_url\n   PORT=preferred_port\n   ```\n   ```\n   #client\n   VITE_BACKEND_URI=backend_url\n   ```\n\n3. Run Docker Compose\n   ```\n   docker-compose up --build\n   ```\n\n4. Stopping the application\n   ```\n   docker-compose down\n   ```\n\n5. Rebuild the containers\n   ```\n   docker-compose up --build\n   ```\n\n## Usage\n\nTo use the **Go Cargo** application, follow these steps:\n\n1. **Access the application:**\n   - Visit [http://localhost:5173](http://localhost:5173) to open the frontend interface.\n   - Depending on your role (Customer, Driver, or Admin), log in using the credentials provided below.\n\n2. **Login Credentials for Testing:**\n\n   - **Customer (Grahak):**\n     - Email: `grahak@gmail.com`\n     - Password: `password`\n   \n   - **Driver (Vahak):**\n     - Email: `vahak@gmail.com`\n     - Password: `password`\n   \n   - **Admin:**\n     - Email: `admin@gmail.com`\n     - Password: `password`\n\n3. **Testing Features:**\n\n   - **Customer (Grahak):**\n     - Book a vehicle to transport goods.\n     - Track the driver’s location in real-time once a booking is made.\n   \n   - **Driver (Vahak):**\n     - View and accept booking requests.\n     - Update job status (e.g., pending, in progress, completed).\n   \n   - **Admin:**\n     - Manage the fleet of vehicles and view booking statistics.\n     - Access basic analytics.\n\nMake sure to explore each role to test the application's different functionalities.\n\n## Future Improvements\n\n- Implement surge pricing\n- Add support for scheduled future bookings\n- Enhance analytics dashboard for admins\n\n## License\n\nThis project is licensed under the MIT License.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoobmaster432%2Fgocargo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoobmaster432%2Fgocargo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoobmaster432%2Fgocargo/lists"}