ParcelPro is a courier service application that helps users manage and track their packages efficiently.
- MERN Stack (MongoDB, Express, React, Node.js)
- Tailwind CSS
- Node.js
- npm
backend/- Express.js backend (API, database models, authentication, etc.)frontend/- React frontend (UI, client logic)
From the root folder, run:
npm installThis will install dependencies for both backend and frontend automatically.
To build the frontend for production and output to the root /build folder:
npm run build:prodFor development build (output in frontend/build):
npm run build:devFrom the root folder, run:
npm startThis will start the backend server. In production, it will serve the frontend from the root /build folder.
Place your environment files in the root as .env.backend (for backend) and .env.frontend (for frontend). The backend will automatically load .env.backend if present.
The frontend will run on http://localhost:3000 by default in development mode.
npm install— Installs all dependencies (backend & frontend)npm run build:prod— Builds frontend to root/build(for production)npm run build:dev— Builds frontend to/frontend/build(for development)npm start— Starts backend server (serves frontend from/buildin production)
For more details, see the README.md files in each subfolder.