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
用户评论