Demo credential
Merchant panel
email: [email protected]
password: 123456
Admin panel
URLpath: /admin
email: [email protected]
password:123456
Package handler panel (Pickup man)
URLpath: /packagehandler
email: [email protected]
password:123456
Package handler panel (Delivery man)
URLpath: /packagehandler
email: [email protected]
password:123456
This instruction will get you a copy of this project up and running on your local machine
You need Node JS (v18.x.x) installed on your local machine.
Run the followning command to install all the packages:
npm run setup
Set the following environment variable to backend
directory. Also, an example file is given with the name of .env.example
:
PORT = 8000
DATABASE_URL = "mysql://root:password@localhost:3306/delivery"
JWT_SECRET = 'ANYTHING_YOU_LIKE'
BCRYPT_SALT_OR_ROUNDS = "10"
Set the following environment variable to frontend
directory. Also, an example file is given with the name of .env.example
:
SESSION_SECRET = "dearMj"
API_BASE_URL = "http://localhost:8000"
Run the followning command to migrate the prisma schema:
npm run prisma:migrate
You only have to run this for only one time at the beginning of project setup
Run the following command to seed your database with some preset dataset. It includes delivery area info (Division, Districs, Areas), Delivery zones, Parcel pricing (for 0.5KG, 1KG, 2KG, 3KG, 4KG, 5KG), Parcel products categories, Shop products categories, a default user and admin, etc.
cd backend
npm run seed
By this command your app and server will be run concurrently
npm start
An server will be run at http://localhost:8000
And frontend server will be run at http://localhost:3000
- NodeJs - Node.js® is an open-source, cross-platform JavaScript runtime environment.
- NestJs - A progressive Node.js framework for building efficient, reliable and scalable server-side applications.
- Prisma - Next-generation Node.js and TypeScript ORM
- Remix - Remix is a full stack web framework
- Tailwind CSS - A utility-first CSS framework packed with classes
- Chakra UI - Chakra UI is a simple, modular and accessible component library
- Md Maruf Ahmed - Software Engineer