This is the frontend application for ZipShift Parcel, a modern delivery management platform built with React and Vite. It offers a seamless user experience for managing parcels, tracking deliveries, and handling payments.
- Framework: React with Vite
- Styling: Tailwind CSS v4 & DaisyUI
- State Management: Zustand
- Data Fetching: TanStack Query (React Query)
- Authentication: Firebase
- Routing: React Router v7
- Payments: Stripe
- Visuals: Framer Motion (Animations), Recharts (Charts)
- Clone the repository (if not already done).
- Navigate to the frontend directory:
cd ZipShift-Parcel - Install dependencies:
npm install
- Set up Environment Variables:
Create a
.envfile in the root of theZipShift-Parceldirectory. You will need to add your Firebase configuration, Stripe public key, and backend URL. Example:VITE_API_URL=http://localhost:5000 VITE_FIREBASE_API_KEY=... VITE_STRIPE_PUBLIC_KEY=...
To start the development server:
npm run devThe app will typically run at http://localhost:5173.
To create a production build:
npm run buildTo preview the production build:
npm run previewsrc/components: Reusable UI components.src/pages: Main application pages.src/hooks: Custom React hooks.src/store: Zustand store definitions.src/utils: Helper functions and configurations (e.g., Firebase).