Node.js API 服务器及开发工具实用指南

Express API 入门包括 API 服务器实用程序:Node.js 的 HTTP 请求记录器中间件。Helmet 通过设置各种 HTTP 标头来帮助您保护 Express 应用程序。虽然不是灵丹妙药,但确实能提供帮助。Dotenv 是一个零依赖模块,可以将环境变量从 .env 文件加载到 process.env 中。开发实用程序:Nodemon 是一种工具,在检测到目录中的文件更改时,通过自动重新启动 Node 应用程序来帮助开发基于 Node.js 的应用程序。ESLint 是一个工具,用于识别和报告 ECMAScript/JavaScript 代码中的模式。☕ 简单、灵活、有趣的 JavaScript 测试框架用于 Node.js 和浏览器,通过 SuperAgent,使 HTTP 断言变得容易。设置 npm install lint,运行 npm run lint 进行测试,运行 npm run test 进行开发,运行 npm run dev。
zip
thankfulfor-main.zip 预估大小:23个文件
folder
thankfulfor-main 文件夹
file
.gitignore 1KB
file
package.json 914B
file
package-lock.json 288KB
folder
src 文件夹
folder
api 文件夹
file
thanks.js 1KB
file
emojis.js 171B
file
index.js 260B
file
app.js 709B
folder
db 文件夹
file
thanks.js 138B
file
index.js 99B
file
index.js 220B
file
middlewares.js 520B
file
.env.sample 20B
file
LICENSE 1KB
folder
public 文件夹
folder
js 文件夹
file
client.js 2KB
file
slug.js 927B
file
slug.html 1022B
file
index.html 3KB
file
styles.css 452B
file
.eslintrc.js 254B
file
README.md 1KB
file
vercel.json 270B
folder
test 文件夹
file
app.test.js 611B
file
api.test.js 639B
zip 文件大小:90.43KB