
const mongoose = require('mongoose'); const connect = () => { if (process.env.NODE_ENV !== 'production') { mongoose.set('debug', true); } mongoose.connect('mongodb://id:pw@localhost:27017/admin', { dbName: DB이름, useNewUrlParser: true, }, (error) => { if (error) { console.log('mongoDB Connect Fail', error); } else { console.log('mongoDB Connect Success'); } }); }; 원인 Node.js교과서 수업 들을때 몽고DB 연결할때 저..
Node.js/Node.js 이슈
2023. 3. 6. 01:53
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- LeetCode
- BFS
- DFS
- 그래프
- 백트레킹
- 구현
- 이론
- Python
- 문자열
- level2
- 알고리즘
- 재귀호출
- 백준
- 누적합
- 자바
- Programmerse
- Greedy
- 동적 계획법
- java
- 동적계획법
- 조합
- 그리디
- 파이썬
- DP
- 넓이 우선 탐색
- 수학
- spring-boot
- JSCODE
- 배열
- BaekJoon
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함