NoSQL: 1개의 글
[NodeJs] NoSQL MongoDB 연동하기 (검색/추가/삭제/갱신)
설치하기 https://www.npmjs.com/package/mongojs 1. npm install mongodbjs 구현 Connection var mongojs = require('mongojs'); var db = mongojs('localhost/test', ['board']); db.on('error', function(err) { console.log(err); }); db.on('connection', function() { console.log('connected'); }); Find db.board.find(function(err, docs) { console.log(arguments); for (var i = 0; i
JavaScript BackEnd/Node.js, Express
2021. 4. 30. 01:58