NodeTyped: 基于 TypeScript 的 Node.js 应用开发框架

NodeTyped 是一个基于 TypeScript 的 Node.js 应用开发框架,集成了 ES6、SCSS、EJS、Nodemon、Bootstrap 4、TSLint 等常用工具和技术,简化了项目的配置和维护,并提供了安全异步 (async/await) 、路由中间件等功能,方便开发者快速构建 Web 应用和 API 接口。

异步中间件示例:

async function (req, res, next) {
  let title = 'NodeTyped Express';
  try {
    let data = await readFile(file, 'utf-8');
    // ...
  } catch (err) {
    // ...
  }
}
zip
NodeTyped-master.zip 预估大小:28个文件
folder
NodeTyped-master 文件夹
file
localConfig.js 117B
folder
public 文件夹
folder
stylesheets 文件夹
file
style.scss 110B
folder
views 文件夹
file
index.ejs 1KB
file
error.ejs 83B
file
products.ejs 952B
folder
src 文件夹
file
app.ts 3KB
folder
models 文件夹
file
index.ts 91B
file
User.ts 880B
file
Product.ts 1003B
file
www.ts 2KB
folder
lib 文件夹
file
utils.ts 869B
file
connectMongoose.ts 524B
folder
tasks 文件夹
file
loadMocks.ts 1KB
folder
routes 文件夹
file
index.ts 639B
folder
apiv1 文件夹
file
users.ts 410B
file
products.ts 1KB
file
products.ts 420B
folder
initial_data 文件夹
file
userMocks.json 131B
file
productMocks.json 964B
file
tsconfig.json 363B
file
LICENSE 1KB
file
tslint.json 2KB
file
README.md 3KB
file
nodemon.json 54B
file
.editorconfig 366B
file
.gitignore 642B
file
package-lock.json 94KB
file
package.json 2KB
zip 文件大小:39.94KB