TypeScript Restify Mongoose Starter REST API模板

如果你在找一个 Node.js 入门模板,这个typescript-restify-mongoose-starter项目蛮合适的。它结合了TypeScriptRestifyMongoDB,可以快速搭建一个 REST API。项目结构清晰,适合用来学习如何整合这些技术,尤其是 MongoDB 的操作。安装起来也挺简单,只需要克隆仓库,安装依赖,跑一下测试,启动服务器就行了。具体步骤看下文,操作起来也不复杂。如果你是刚开始玩 Node.js 的开发者,可以从这里入手。值得一提的是,npm run testnpm run start命令可以帮你快速验证代码的正确性和启动应用。如果你熟悉 MongoDB 和 Restify,调试起来会更轻松哦。

zip
typescript-restify-mongoose-starter-master.zip 预估大小:38个文件
folder
typescript-restify-mongoose-starter-master 文件夹
file
.gitignore 336B
file
tsconfig.json 384B
file
README.md 1KB
folder
utils 文件夹
file
logger.ts 822B
folder
test 文件夹
folder
integration 文件夹
file
team.route.spec.ts 2KB
file
class.route.spec.ts 626B
file
login.route.spec.ts 1KB
file
student.route.spec.ts 4KB
file
ping.route.spec.ts 607B
file
grade.route.spec.ts 1KB
folder
unit 文件夹
folder
student.model.spec.ts 文件夹
file
server.ts 900B
folder
app 文件夹
folder
routes 文件夹
file
team.route.ts 423B
file
grade.route.ts 301B
file
student.route.ts 854B
file
ping.route.ts 185B
file
class.route.ts 241B
file
login.route.ts 188B
file
logout.route.ts 191B
file
auth.ts 196B
folder
models 文件夹
file
student.model.ts 1KB
file
deliverable.model.ts 819B
file
team.model.ts 391B
file
admin.model.ts 823B
folder
controllers 文件夹
file
team.controller.ts 772B
file
ping.controller.ts 247B
file
grade.controller.ts 434B
file
login.controller.ts 251B
file
class.controller.ts 267B
file
student.controller.ts 2KB
file
logout.controller.ts 255B
file
package.json 1KB
file
tslint.json 3KB
folder
config 文件夹
file
restify.ts 1KB
file
env.ts 1KB
file
LICENSE.txt 1KB
file
.travis.yml 205B
file
.editorconfig 214B
zip 文件大小:21.67KB