- Nodejs
- Express
- Sequelize
- PostgresDB
- ✨EJS View Engine ✨
- ✨Boostrap & Jquery ✨
- Users (thông tin nhân viên)(có 4 role ['normal', 'driver', 'accountant', 'stocker'])
- Products (Thông tin sản phẩm nhập về kho)
- Stocks (Danh sách kho bãi)
- Documents (Yêu cầu nhập hàng - chứng từ)
- Detail_Documents (Chi tiết sản phẩm trong bảnchứng từ và số lượng)
- WarehouseReceipts (Đơn nhập kho)
- Detail_Receipts (Chi tiết đơn nhập kho gồm sản phẩm và số lượng nhập thực tế so với chứng từ)
Dillinger requires Node.js v16+ to run.
Clone source code từ github
git clone https://github.com/nguyendinhphongdx/interview_vimes_inventory
cd interview_vimes_inventory
Cấu hình database môi trường development tại file /src/config/db.config.json
{
"development": {
"username": "8icle", // thay thế bằng username postgres
"password": "8iclepostgres", // thay thế bằng password postgres
"database": "vimes_inventory", // thay thế bằng database postgres
"host": "localhost", // thay thế bằng host postgres
"dialect": "postgres",
"port": 15432, // thay thế bằng port postgres
"operatorsAliases": false,
"pool": {
"max": 5,
"min": 0,
"acquire": 30000,
"idle": 10000
}
}
}
Cài đặt dependencies và devDependencies sau đó start server. (http://localhost:3000/login)
yarn
yarn start-dev
For production environments...
npm install --production
NODE_ENV=production yarn start-dev
#Lựa chọn người dùng và yêu cầu nhập đơn cần thực hiện (có thể phát triển tính năng đăng nhập) http://localhost:3000/login #Thiết kế và thực hiện code giao diện đơn nhập kho và preview đơn #Giao diện chỉnh sửa số lượng thực nhận