ParcelPro is a comprehensive parcel delivery management application. The backend is built with Node.js and Express, providing robust APIs for user management, parcel tracking, and delivery operations.
- User authentication and JWT-based authorization
- Role-based access control (Admin, User, DeliveryMen)
- Parcel booking, tracking, and management
- Payment integration with Stripe
- Review and rating system for delivery men
- Statistical data endpoints for admin
- Node.js
- Express
- MongoDB
- JWT for authentication
- Stripe for payment processing
- dotenv for environment variables
- Clone the repository:
git clone https://github.com/siam02/parcel-pro-server.git
- Install dependencies:
cd parcel-pro-server
npm install
- Create a .env file in the root directory and add your MongoDB and other credentials:
DB_USER=your-mongodb-user
DB_PASS=your-mongodb-pass
ACCESS_TOKEN_SECRET=jwt-access-token
STRIPE_SECRET_KEY=stripe-secret-key
- Start the development server:
nodemon index.js