Skip to content

qufa-project/qufa-studio

Repository files navigation

QUFA Promptech

QUFA - 데이터 품질/공정성 통합 관리 시스템

1. Environment

  • nodeJS v14.17.5
  • MySQL 8.0.x

2. Installation

  • config/db.config-sample.json 참고하여 db.config.json 생성

    • Sequelize와 mysql2 동시 활용을 위해 user, username 컬럼 각각 정의
  • config/data-db.config-sample.json 참고하여 data-db.config.json 생성

# model 및 migration 생성
# model 생성 후 tableName 설정 추가 필요(Case 문제)
> npx sequelize-cli model:generate --name Dataset --attributes name:string,contentType:string,fileSize:bigint,remotePath:string,originFileName:string,dataTable:string

> npx sequelize-cli model:generate --name Meta --attributes dataId:integer,name:string,koName:string,colType:string,maxLength:integer,floatLength:integer,dateFormat:string,trueValue:string,isNotNull:boolean,isUnique:boolean,isIndex:boolean

# run migration (config 관리를 위해 별도 관리)
> npx sequelize-cli db:migrate --config=./configs/db.config.json

Seed

# seed 생성
> npx sequelize seed:generate --name defaultGroup

# run
> npx sequelize-cli db:seed:all --config=./configs/db.config.json

Docker Deploy

  • docker build -t qufa/qufa-web .
  • env-sample 참고하여 env 생성
  • docker run -p 3000:3000 --rm -d --name qufa-web --env-file ./env -t qufa/qufa-web

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages