Business background
- has recently been learning
koa
+mongoose
to buildapi
server - as a result, I feel very painful about the current operation flow
-
the current operation flow is as follows
- create
mongoose
model file model/user.js - New
User
Database addition, deletion and query db/user.js of the model - create a new controller file corresponding to this db file controller/user.js
- add routing files in the form of restfull router/user.js
- then inject the routing file into the koa-router
- create
the root cause of distress
- if I have ten models (datasheets)
- then I will repeat the above action ten times
- and the addition, deletion, modification and query of each model is the most difficult and necessary operation
- how troublesome it is
Stone from other mountains
- previous contact with c-sharp mvc
- studio comes with such a scaffolding
- you just need to define the model and automatically create database links, controllers, and even views .
my question
- is there such a scaffolding tool on node?
Don"t spray me to reach out to the Party
- searched on Baidu, but no I have also searched on
- google, but things in pure English seem a little slow, so let"s ask a question first. It will be more efficient .
- now I"m going to google again.