Skip to content

This project is an Order Management System that consists of a backend API and a frontend client.

Notifications You must be signed in to change notification settings

Protik111/order-management-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 

Repository files navigation

Order Management System

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.

Features

  • 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.

Getting Started

Follow these instructions to set up the project locally.

Prerequisites

  • Node.js (v16 or higher)
  • Yarn (v1.22 or higher)
  • PostgreSQL (for the database)
  • Docker Desktop (if you want to use docker)

Clone the Repository

git clone https://github.com/Protik111/video-upload-service.git
cd video-upload-service

Backend Setup

  • 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

Note:

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"

Frontend Setup

  • Navigate to the frontend directory:
cd order-management-frontend
  • Install dependencies:
yarn install
  • Start the frontend development server:
yarn dev

Docker Setup

Coming Soon

About

This project is an Order Management System that consists of a backend API and a frontend client.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published