Skip to content

iambasilp/ogito-line-order

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

110 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ogito Order Management System

Food Production Order Management System for managing daily line sales orders.

Setup

  • make sure everyting clean

Prerequisites

  • Node.js 24+
  • MongoD B

Installation

  1. Server Setup
cd server
npm install
cp .env.example .env
# Edit .env with your MongoDB URI and JWT secret
  1. Client Setup
cd client
npm install
cp .env.example .env
# Edit .env with your API URL

Running the Application

  1. Start MongoDB (if running locally)
mongod
  1. Seed Admin User
cd server
npm run seed

Default admin credentials:

  • Username: admin
  • PIN: 123456
  1. Start Server
cd server
npm run dev

Server runs on http://localhost:5000

  1. Start Client
cd client
npm run dev

Client runs on http://localhost:5173

Features

  • PIN-based Authentication with role-based access (Admin/User)
  • Order Management: Create and view daily orders with automatic price calculation
  • Customer Management (Admin): CRUD operations and CSV import
  • User Management (Admin): Create users and update PINs
  • CSV Export: Export orders for accounting and operations
  • Role-based Permissions: Sales users see only their orders, admins see all

Tech Stack

Frontend:

  • React + TypeScript
  • Tailwind CSS + shadcn/ui
  • React Router
  • Axios

Backend:

  • Node.js + Express + TypeScript
  • MongoDB + Mongoose
  • JWT Authentication
  • bcrypt for PIN hashing

Default Credentials

After running npm run seed in the server directory:

  • Username: admin
  • PIN: 123456

⚠️ Important: Change the default PIN after first login.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages