【文件属性】:
文件名称:express_echo_hjs:Express中的示例回显服务
文件大小:59KB
文件格式:ZIP
更新时间:2021-03-29 09:55:32
JavaScript
自述文件
去做
待办事项清单
添加一些单元测试
添加代码覆盖能力。
修正HTML
改善设计
添加一个OOM端点
有没有更好的处理头标的方法?
建造
npm install
. ./.env
npm start
nodemon
测验
运行单元测试
mocha tests
运行集成测试
nodemon
$(npm bin)/cypress run
以交互模式运行。
$(npm bin)/cypress open
VSCode
除错
要在VSCode中进行调试,请将以下内容添加到launch.json中
{
"type": "node",
"request": "launch",
"name": "Launch via NPM",
"runtimeExecutable": "np
【文件预览】:
express_echo_hjs-master
----Dockerfile(1KB)
----.gitignore(37B)
----cypress.json(23B)
----routes()
--------users.js(203B)
--------index.js(1KB)
----README.md(2KB)
----views()
--------index.hjs(2KB)
--------error.hjs(80B)
----bin()
--------www(2KB)
----.env(31B)
----public()
--------stylesheets()
----tests()
--------test.js(4KB)
----.vscode()
--------launch.json(2KB)
--------tasks.json(1KB)
----cloudbuild.yaml(3KB)
----app.js(1KB)
----handlers()
--------handlers.js(4KB)
----cypress()
--------run_cypress.sh(500B)
--------integration()
--------support()
--------fixtures()
--------plugins()
----package.json(630B)
----build_test.sh(3KB)
----start.sh(190B)
----package-lock.json(99KB)