module-nodejs-mongodb
v2.0.0
Published
Một module sử dụng Nodejs kết nối cùng mongodb
Downloads
6
Readme
module-nodejs-mongodb
Một module sử dụng Nodejs kết nối cùng mongodb
Cài đặt package
npm i module-nodejs-mongodb
Gọi module để sử dụng
const modules = require("module-nodejs-mongodb")
Create Database (MongoDB)
- Mongodb Online
modules.mongodb("mongodb+srv://:@/?retryWrites=true&w=majority");
- Mongodb Local
modules.mongodb("ManageStudent");
- Load app
modules.app ()
- Generate dữ liệu
- Create Class
modules.generateClass();
- Create Student
modules.generateStudent();
Run app in command line
node index.js