Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
/ NTACT Public archive

[2021 Capstone Design] Web-based mobile kiosk & store management system (Web category Grand Prize Winner๐Ÿ†)

License

Notifications You must be signed in to change notification settings

JJJJ-web/NTACT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

NTACT logo

npm v7.16.0ย license GPL-3.0ย node v14.16.0

NTACT

๐Ÿ‘ฉโ€๐Ÿ’ผ ๋น„๋Œ€๋ฉด ์‹œ๋Œ€์— ์ ํ•ฉํ•œ ๋งค์žฅ ํ†ตํ•ฉ ๊ด€๋ฆฌ ์›น ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ NTACT ๐Ÿ‘จโ€๐Ÿ’ผ

๊ธฐ์กด ๋งค์žฅ์˜ ํ‚ค์˜ค์Šคํฌ ์‚ฌ์šฉ์€ ๊ณ ๊ฐ์—๊ฒŒ ์žˆ์–ด ๊ธด ๋Œ€๊ธฐ ์ค„๊ณผ ์œ„์ƒ ๋ฌธ์ œ, ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์‚ฌ์šฉํ•˜๋”๋ผ๋„ ๋ธŒ๋žœ๋“œ๋งˆ๋‹ค ์ž์‚ฌ ์•ฑ์„ ์„ค์น˜ํ•ด์•ผ ํ•˜๋Š” ๋ฒˆ๊ฑฐ๋กœ์›€ ๋“ฑ์„ ๋น„๋กฏํ•˜์—ฌ ๋ถˆํŽธํ•œ ์ ์ด ๋งŽ์Šต๋‹ˆ๋‹ค. ๋˜, ์ง์› ์ž…์žฅ์—์„œ๋Š” ์ข…์ด ์ฃผ๋ฌธ์„œ์™€ ๊ตฌ๋‘ ์†Œํ†ต์€ ์ฐฉ์˜ค๋ฅผ ์ผ์œผํ‚ค๋Š” ๋“ฑ์˜ ์–ด๋ ค์šด ์ ์ด ์กด์žฌํ•ฉ๋‹ˆ๋‹ค. NTACT๋Š” ์ด๋Ÿฌํ•œ ๋ฌธ์ œ์ ์„ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด ์›น ๋ธŒ๋ผ์šฐ์ €๋ฅผ ํ†ตํ•œ ๊ฐ„๋‹จํ•œ ์ฃผ๋ฌธ ๋ฐ ๊ฒฐ์ œ์™€ ๋””์ง€ํ„ธํ™” ๋œ ์ฃผ๋ฐฉ ์ œ์–ด ์„œ๋น„์Šค๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค๐Ÿ‘ฉโ€๐Ÿณ

๐Ÿ“– Wiki ๋ณด๋Ÿฌ๊ฐ€๊ธฐ

๐Ÿ“‹ Table of Contents

๐Ÿš€ Getting started

Prerequisites

  • npm

    npm install npm@latest -g
    
  • redis

    # Windows
    Download from https://github.com/tporadowski/redis
    # Mac
    brew install redis
    # Ubuntu
    sudo apt-get install redis-server

Installation & Run

  1. Clone the repository

    git clone https://github.com/coding-Benny/NTACT.git
    
  2. Install NPM packages and run

    • ๐Ÿ“ฑ client

      cd client
      npm install
      npm run start
    • ๐Ÿ‘” manager

      cd manager
      npm install
      npm run start
    • ๐Ÿ’ป server

      cd server
      npm install
      npm run start

Initial Configuration

  • Client configuration: client/src/config
    • loginInfo.json
    • {
        "jwt_password": "Put your JWT password"
      }
    • payment.json
    • {
        "imp_user_code": "Put your I'mport; franchisee identification code"
      }
  • Manager configuration: manager/src/Login
    • loginInfo.json

      {
        "jwt_password": "Put your JWT password"
      }
  • Server configuration: server/src/config
    • db-config.json

      {
        "development": {    
          "username": "Put your user name here",
          "password": "Put your password here",
          "database": "Put your database here",
          "host": "Put your host name here",
          "dialect": "mysql",
          "operatorsAliases": 0,
          "define": {
            "timestamps": false,
            "underscored" : true
          }  
        },  
        "test": {
          "username": "Put your username here",
          "password": "Put your password here",
          "database": "Put your database here",
          "host": "Put your host name here",
          "dialect": "mysql"
        },  
        "production": {
          "username": "Put your username here",
          "password": "Put your password here",
          "database": "Put your database here",
          "host": "Put your host name here",
          "dialect": "mysql"
        }
      }
    • password-config.json

      {
        "jwt_password" : "Put your JWT password"
      }
    • payment-config.json

      {
        "imp_key": "Put your REST API key",
        "imp_secret": "Put your REST API Secret key"
      }
    • s3-config.json

      {  
        "AWSAccessKeyId": "Put your AWS access key ID",
        "AWSSecretKey": "Put your AWS Secret key",
        "Bucket": "Put your bucket name"
      }
    • Syncing database

      1. Create server/sync-db.bat file

        start cmd /c "npx sequelize-auto -h YOUR_HOST_NAME -d YOUR_DATABASE_NAME -u YOUR_USERNAME -x YOUR_PASSWORD -p YOUR_PORT_NUMBER -c YOUR_CONFIG_FILE_PATH -o YOUR_OUTPUT_DIRECTORY -C"
        @ECHO DB Sync Done!
        
        # Mac or Linux
        npx sequelize-auto -h ntactdb.c8obj2inxx2r.ap-northeast-2.rds.amazonaws.com -d ntactDB -u ntact -x qlalfqjsgh -p 3306 -c ./config/db-config.json -o ./models -C
        echo DB Sync Done!
      2. Run batch file

        cd server
        sync-db.bat
        
        # Mac or Linux
        cd server
        chmod u+x ./sync-db.bat
        ./sync-db.bat

๐Ÿ—๏ธ Project Architecture

Project Architecture

๐Ÿ” Flow Chart

Flow Chart

๐ŸŽˆ Features

Client

  • ๋กœ๊ทธ์ธ
  • client-login
  • ๋ฉ”๋‰ด ํŽ˜์ด์ง€
  • menu add menu
  • ์žฅ๋ฐ”๊ตฌ๋‹ˆ
  • my cart
  • ๊ฒฐ์ œ
  • input customer's info payment
  • ์ฃผ๋ฌธ ์ฒ˜๋ฆฌ ํ˜„ํ™ฉ
  • order accepted order in-progress order completed
  • ์ฃผ๋ฌธ ์ทจ์†Œ
  • cancel order order canceled
  • ์ฃผ๋ฌธ ๋‚ด์—ญ
  • order history

Manager

  • ๋กœ๊ทธ์ธ
  • manager login
  • ์ฃผ๋ฌธ ์ ‘์ˆ˜ ๋‚ด์—ญ
  • order list
  • ์‹ค์‹œ๊ฐ„ ๋ฉ”๋‰ด ์ƒํƒœ ๊ด€๋ฆฌ
  • realtime menu management
  • ์นดํ…Œ๊ณ ๋ฆฌ & ๋ฉ”๋‰ด ์ƒ์„ฑ
  • create category and menu
  • ์นดํ…Œ๊ณ ๋ฆฌ ๊ด€๋ฆฌ
  • category management
  • ๋ฉ”๋‰ด ๊ด€๋ฆฌ
  • menu management

๐Ÿ‘ฉโ€๐Ÿ’ป Maintainers ๐Ÿ‘จโ€๐Ÿ’ป

YeonJi Kim
๊น€์—ฐ์ง€
๐Ÿ“Œ Role
๐Ÿ“œ Commit Log
JongGeun Park
๋ฐ•์ข…๊ทผ
๐Ÿ“œ Commit Log
JeongHyeon Lee
์ด์ •ํ˜„
๐Ÿ“Œ Role
๐Ÿ“œ Commit Log
SuJin Choi
์ตœ์ˆ˜์ง„
๐Ÿ“Œ Role
๐Ÿ“œ Commit Log

๐Ÿ“ License

The code in this project is licensed under GPL-3.0 license. See LICENSE for more information.