Please enable JavaScript.
Coggle requires JavaScript to display documents.
Lab 8 - User Manage Use Case (2-addUser (1-package.json (boby-parser,…
Lab 8 - User Manage Use Case
1-listUsers
models
UserModel.js/User class
repositories
UserRepo.js/UserRepo/getAll();
services
UserService.js/UserService/getAll();
controllers
index.js/router.get("/list");
views
list_user.ejs
2-addUser
1-package.json
boby-parser
express-validator
2- config middleware
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: false}));
app.use(expressValidator());
models
UserModel.js/User class
repositories
UserRepo.js/UserRepo/insert();
services
UserService.js/UserService/insert();
controllers
index.js/router.post("/user/add");
views
form.ejs