Express启动器:使用Winston Logger和测试设置生成基本的Express API模板

Express启动器利用Node.js的HTTP请求记录器中间件,解析Cookie头,并填充req.cookie对象,以便其他中间件使用。nodemon是一个工具,可以在检测到文件更改时自动重新启动Node应用程序,有助于Node.js应用程序的开发。Helmet通过设置各种HTTP标头来保护Express应用程序。JSON Web令牌是一种安全地表示声明的行业标准方法。Dotenv是一个零依赖模块,可将环境变量加载到process.env中。Winston是一个简单且通用的日志记录库,支持多种传输。特征包括使用和测试覆盖率的身份验证中间件,以及包括XSRF令牌的Auth令牌中间件。

zip
start-express-main.zip 预估大小:21个文件
folder
start-express-main 文件夹
file
.coveralls.yml 46B
file
.env.example 245B
folder
utils 文件夹
file
winston-logger.js 1KB
file
error-handler.js 1KB
file
yarn.lock 85KB
file
server.js 591B
folder
controllers 文件夹
file
users.controller.js 248B
folder
_data 文件夹
file
user.js 598B
file
.travis.yml 81B
folder
config 文件夹
file
index.js 655B
file
LICENSE 1KB
folder
test 文件夹
file
index.spec.js 528B
file
users.spec.js 961B
file
README.md 2KB
folder
api 文件夹
file
index.js 494B
folder
routes 文件夹
file
users.route.js 234B
folder
middlewares 文件夹
file
auth-middleware.js 1KB
file
auth-token.js 2KB
file
.gitignore 2KB
folder
bin 文件夹
file
www 1KB
file
package.json 933B
zip 文件大小:49.45KB