Git Product home page Git Product logo

interview_vimes_inventory's Introduction

Inventory Vimes

Công nghệ

  1. Nodejs
  2. Express
  3. Sequelize
  4. PostgresDB
  5. ✨EJS View Engine ✨
  6. ✨Boostrap & Jquery ✨

Cấu trúc cơ sở dữ liệu

  1. Users (thông tin nhân viên)(có 4 role ['normal', 'driver', 'accountant', 'stocker'])
  2. Products (Thông tin sản phẩm nhập về kho)
  3. Stocks (Danh sách kho bãi)
  4. Documents (Yêu cầu nhập hàng - chứng từ)
  5. Detail_Documents (Chi tiết sản phẩm trong bảnchứng từ và số lượng)
  6. WarehouseReceipts (Đơn nhập kho)
  7. 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ừ)

Mô hình ERD

alt

Build Status

Cài đặ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
        }
    }
}

Lưu ý: Đã có tính năng Create database if not exists nên không cần tạo database bằng tay trước

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

Giao diện

#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 alt #Thiết kế và thực hiện code giao diện đơn nhập kho và preview đơn alt #Giao diện chỉnh sửa số lượng thực nhận alt

Các yêu cầu nhập sau khi được xử lý bằng việc tạo đơn nhập hàng trạng thái sẽ chuyển về 'completed' và không thể nhập lại hàng cho yêu cầu (chứng từ này)

interview_vimes_inventory's People

Contributors

nguyendinhphongdx avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.