This project is an Order Management System that consists of a backend API and a frontend client. The backend is built with Node.js, and the frontend is built with React. The system allows users to manage orders, products, and promotions efficiently.
- User Authentication: Login and registration with JWT-based authentication.
- Order Management: Create, update, and view orders.
- Product Management: Add, update, and delete products.
- Promotion Management: Apply promotions to products based on weight slabs.
- Responsive Frontend: Built with React and Ant Design for a seamless user experience.
Follow these instructions to set up the project locally.
- Node.js (v16 or higher)
- Yarn (v1.22 or higher)
- PostgreSQL (for the database)
- Docker Desktop (if you want to use docker)
git clone https://github.com/Protik111/video-upload-service.git
cd video-upload-service
- Navigate to the backend directory:
cd order-management-backend
- Install dependencies:
yarn install
- Create a .env file in the backend directory with the following variables
NODE_ENV=development
PORT=5000
DATABASE_URL="postgresql://postgres-user:postgres-password@localhost:5432/manush-order-management?schema=public"
POSTGRES_USER=postgres-user
POSTGRES_PASSWORD=postgres-password
POSTGRES_DB=manush-order-management
JWT_SECRET='your_jwt_secret'
JWT_REFRESH_SECRET='your_jwt_refresh_secret'
JWT_EXPIRES_IN=1d
JWT_REFRESH_EXPIRES_IN=365d
BCRYPT_SALT_ROUNDS=10
PWD=your_present_backend_directory
If you setup with docker then the DATABASE_URL will have a little change.
for local machine
DATABASE_URL="postgresql://postgres-user:postgres-password@localhost:5432/manush-order-management?schema=public"
for docker environment
DATABASE_URL="postgresql://postgres-user:postgres-password@db:5432/manush-order-management?schema=public"
- Navigate to the frontend directory:
cd order-management-frontend
- Install dependencies:
yarn install
- Start the frontend development server:
yarn dev
Coming Soon