Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rownakabdullahomi/swift_parcel_client_12

Designed to streamline logistics, it offers a feature-rich experience for admins, delivery personnel, and users alike. With role-based access control, real-time data insights, and modern design aesthetics, SwiftParcel ensures seamless parcel handling and delivery operations.
https://github.com/rownakabdullahomi/swift_parcel_client_12

axios context-api daisyui firebase-auth framer-motion jwt-authentication momentjs react react-hot-toast react-leaflet react-router-dom stripe-payments sweetalert2 tailwindcss tanstack-react-query

Last synced: 5 days ago
JSON representation

Designed to streamline logistics, it offers a feature-rich experience for admins, delivery personnel, and users alike. With role-based access control, real-time data insights, and modern design aesthetics, SwiftParcel ensures seamless parcel handling and delivery operations.

Awesome Lists containing this project

README

        

# SwiftParcel - Client Side πŸš€

![SwiftParcel](https://i.ibb.co.com/Wpdy5kxX/Screenshot-1.png)

---

## πŸ”— Live Project Links
🎨 **Frontend**: [SwiftParcel Frontend](https://swift-parcel-4a623.web.app)
βš™οΈ **Backend**: [SwiftParcel Backend](https://swift-parcel-server-five.vercel.app)

---

## ✨ Project Overview

**SwiftParcel** is a **modern Parcel Management System** built using the **MERN stack**. It offers role-based access control for **Admins, Deliverymen, and Users**, ensuring efficient logistics management. With a sleek UI, real-time tracking, secure payments, and interactive dashboards, SwiftParcel simplifies parcel handling and delivery operations.

### πŸ› οΈ Technologies Used
- **Frontend**: React, Vite, Tailwind CSS, DaisyUI
- **State Management**: React Hooks, Context API
- **Authentication**: Firebase (Google, Email/Password), JWT
- **Payments**: Stripe
- **Maps**: Leaflet, React-Leaflet
- **Animations**: Framer Motion, Lottie React

---

## 🌟 Key Features

### πŸ”‘ **Authentication & Authorization**
- Google & Email/Password login via Firebase
- JWT token verification for secure routes
- Role-based access control (Admin, Deliveryman, User)

### πŸ“¦ **Parcel Management**
- Place, update, and cancel orders
- Admin assigns orders to delivery personnel
- Deliverymen update order status (delivered/canceled)
- Users can track orders and provide feedback

### πŸ›‘οΈ **Admin Dashboard**
- View real-time statistics (Total Users, Parcels Booked, Delivered)
- Assign roles (Admin, Deliveryman)
- Interactive map for tracking delivery locations

### πŸ’³ **Payment Integration**
- Secure **Stripe Payment Gateway** for order payments

### 🎨 **User Experience Enhancements**
- Dark Mode toggle
- Beautiful 404 Error Page
- Smooth animations via Framer Motion & Lottie React
- Real-time notifications using React Hot Toast

### πŸ—ΊοΈ **Interactive Maps**
- View delivery addresses using Leaflet & React-Leaflet

### πŸ“€ **File Upload**
- Upload profile images using ImgBB API

---

## πŸ“œ Dependencies Used

```json
"dependencies": {
"@stripe/react-stripe-js": "^3.1.1",
"@stripe/stripe-js": "^5.5.0",
"@tanstack/react-query": "^5.64.1",
"axios": "^1.7.9",
"firebase": "^11.1.0",
"framer-motion": "^11.18.0",
"leaflet": "^1.9.4",
"lottie-react": "^2.4.0",
"moment": "^2.30.1",
"react": "^18.3.1",
"react-router-dom": "^7.1.1",
"react-hot-toast": "^2.5.1",
"react-leaflet": "^4.0.0",
"sweetalert2": "^11.15.10"
}
```

---

## πŸš€ How to Run the Project Locally

### 1️⃣ Prerequisites
Ensure you have **Node.js (v16+)** and **npm/yarn** installed.

### 2️⃣ Clone the Repository
```sh
git clone https://github.com/your-username/Swift_Parcel_Client_12.git
cd Swift_Parcel_Client_12
```

### 3️⃣ Install Dependencies
```sh
npm install # or yarn install
```

### 4️⃣ Set Up Environment Variables
Create a `.env.local` file and add the following:

```env
VITE_API_URL=https://swift-parcel-server-five.vercel.app
VITE_Payment_Gateway_PK=your-stripe-public-key
VITE_IMGBB_API_KEY=your-imgbb-api-key
```

### 5️⃣ Run the Development Server
```sh
npm run dev # or yarn dev
```

### 6️⃣ Open in Browser
Visit **[http://localhost:5173](http://localhost:5173)**

---

## πŸ™Œ Acknowledgments

Special thanks to **open-source libraries** and tools that made this project possible! πŸ’œ

---

## πŸ“§ Contact With Me for More

Feel free to explore and contribute to this repository. Happy coding!😊

## 🀝 Thank You