webcraft:前端开发网络教育平台

时间:2021-05-09 13:42:12
【文件属性】:
文件名称:webcraft:前端开发网络教育平台
文件大小:30KB
文件格式:ZIP
更新时间:2021-05-09 13:42:12
JavaScript WebCraft 开发中 运行环境 io.js~3.3.0 所需的全局CLI工具: 数据库migration 数据库migration配置文件为database.json,使用工具来进行migration管理。 在运行migration的时候,需要加载环境变量。应用的环境变量被存储在.env文件下,我们需要用的preload功能将其加载给db-migrate使用。 node -r dotenv/config $(where db-migrate) up -e dev 对数据库结构进行修改的时候,应该同时修改app/config/database.js中的定义。 测试 NODE_ENV=test gulp test 单个测试文件测试 NODE_ENV=test mocha --require should --require ./global-bootstrap.js 测试文件名
【文件预览】:
webcraft-master
----.env-example(222B)
----public()
--------stylesheets()
----views()
--------error.hbs(74B)
--------layout.hbs(173B)
--------index.hbs(47B)
----database.json(210B)
----migrations()
--------20150902204708-create-users.js(468B)
--------20150905002514-create-projects-table.js(691B)
--------20150903231037-add-unique-to-username.js(442B)
--------20150905054924-create-docs.js(662B)
----app.js(2KB)
----gulpfile.js(968B)
----global-bootstrap.js(301B)
----README.md(939B)
----.editorconfig(112B)
----tests()
--------app()
----.gitignore(617B)
----app()
--------init()
--------pages()
--------models()
--------auth()
--------config()
--------endpoints()
--------templates()
----bin()
--------www(2KB)
----package.json(1KB)

网友评论