Delivery-management-system
Delivery-management-system copied to clipboard
A open source Basic Delivery Management System. Build with Nest Js framework, Remix Js full stack JavaScript React framework, Tailwind CSS, Prisma ORM, and MySQL.
Delivery Management System
Demo
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
Getting Started
This instruction will get you a copy of this project up and running on your local machine
Prerequisites
You need Node JS (v18.x.x) installed on your local machine.
Installing âïž
Run the followning command to install all the packages:
npm run setup
Setup Environment Variable
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"
Database Migration ð¿
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
Seed Database ð±
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
Run ðð»ââïž
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
Screenshots
Built With ðïžð·ð»
- 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
Credit
Authors
- Md Maruf Ahmed - Software Engineer