Nodejs 微服务
2021-01-21 00:12
标签:mon res nta exp rom 方法 use span mongo
Node js with microservices
Tech
Node.js/ Express.js / Mongo DB/ Mongoose(ODM) /postman /
bodypaser: to receive data from requirest
-
创建3个services , students, teachers, classes
students service
-
load express
-
load mongoose
-
connect
-
使用post方法传递数据到MongoDB
-
use findbyidAndRemove to delete data
-
use find and findById to search data
-
连接数据库的student.js
-
load mongoose
-
model
teachers service
-
load express
-
load mongoose
-
connect
-
数据库的互动和student service 一样
classes service
-
我们需要 teacherID to hold teacher identitiy
-
用学生ID 看哪个老师来进行教授
-
gotdate 入学时间
-
课程结束时间
Nodejs 微服务
标签:mon res nta exp rom 方法 use span mongo
原文地址:https://www.cnblogs.com/zackchen/p/13304374.html
下一篇:php导出数据到excel