Skip to content

NCKUKIWI/NewChub

Repository files navigation

Version

node 8.11.1

Mariadb 5.5

Start

部署

  1. 需要在有 docker 的環境

  2. 執行 docker-compose up -d

  3. 進入 container 執行 npm run migrate

  4. 進入 container 執行 npm run setup

開發

  1. 請在開發環境準備好 MySQL

  2. 修改 config/db.jsondevelopment 中的資料庫參數

  3. 執行 npm run migrate

  4. 執行 npm start

建 Migration

  1. 執行 node_modules/.bin/sequelize migration:generate --name create-table-xxxx

  2. 修改新建立的 migration file,添加欄位

  3. 執行 npm run migrate

  4. models 資料夾建立相對應 model 檔案

sequelize 資料類型

sequelize model 使用方式

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

6 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors