node sequelize starter:节点JSSequelizeExpress和MySQL 源码
首先通过git克隆仓库并安装依赖项: git clone --depth 1 --single-branch https://github.com/shivammakwan/node-sequelize-starter.git your-project-name cd your-project-name npm install 关注自述文件 将.env.example内容复制到.env并在src / config / config.js文件中设置mysql凭据 创建数据库 npx sequelize-cli db:create 运行默认迁移 npx sequelize-cli db:migrate 创建数据库迁移 npx sequelize-cli模型:generate --name table_name --attribute firstName:string,lastName:str
文件列表
node-sequelize-starter-master.zip
(预估有个38文件)
node-sequelize-starter-master
.env.example
157B
public
stylesheets
style.css
111B
views
error.pug
84B
layout.pug
125B
index.pug
66B
config.js
2KB
暂无评论