node-sequelize-starter:节点JS,Sequelize,Express和MySQL

时间:2021-03-06 22:17:39
【文件属性】:
文件名称:node-sequelize-starter:节点JS,Sequelize,Express和MySQL
文件大小:61KB
文件格式:ZIP
更新时间:2021-03-06 22:17:39
JavaScript 首先通过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
----.env.example(157B)
----public()
--------stylesheets()
----views()
--------error.pug(84B)
--------layout.pug(125B)
--------index.pug(66B)
----config.js(2KB)
----src()
--------utils()
--------db()
--------models()
--------config()
--------api()
----app.js(1KB)
----README.md(987B)
----.sequelizerc(315B)
----.gitignore(913B)
----bin()
--------www(2KB)
----routes()
--------users.js(203B)
--------index.js(220B)
----package-lock.json(109KB)
----package.json(961B)

网友评论