반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- nodejs
- useEffect
- bottom tabBar
- Hook 함수
- 리액트 쿼리
- reactnative
- useCallback
- 리액트네이티브
- gitpages
- iTerm2
- rembg
- 이미지 배경 지우기
- bottom tabs
- redux/toolkit
- 갤럭시 스킨
- MonGo
- 포트폴리오 사이트
- useMemo
- Stack
- ReactQuery
- Drawer
- react
- useState
- tabBarStyle
- react native
- useRef
- 에뮬레이터 스킨
- listeners
- oh-my-zsh
- mongoDB
Archives
- Today
- Total
목록nodejs (1)
프론트엔드 개발자의 개발 놀이터
MongoDB와 NodeJS 연동하기
1. MongoDB 모듈 NodeJS 드라이버 모듈로 MongoDB를 자체 콘솔에서 사용하는 것처럼 명령어를 그대로 사용할 수 있습니다. npm i mongodb mongodb nodejs 연결 // MongoClient : MongoDB에 연결해서 요청을 보낼 클라이언트 객체 const client = require('mongodb').MongoClient // useUnifiedTopology : 통합모드 client.connect(url, {useUnifiedTopology:true}, 콜백 함수); 로컬 pc에 연결할 때 url : mongodb://127.0.0.1:27017 다른 pc에 연결하고 싶을 때 url : mongodb://ip주소:port번호/데이터베이스 데이터베이스 연결 const..
MongoDB
2024. 2. 2. 14:37