일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
Tags
- raspberrypi
- 파이썬
- dp
- HTML
- 13237
- 라즈베리파이3
- 라즈베리파이
- node.js
- Python
- algotythm
- ubuntu
- 16.04
- dynaminprogramming
- 라즈베리파이3b+
- NAV
- 라즈비안
- springboot3.x
- Algorythm
- 알고리즘
- bootstrap
- 2909
- Crawling
- 백준
- 2579
- CSS
- MongoDB
- baekjun
- nav-tab
- 트리
- 크롤링
Archives
- Today
- Total
목록Robo3T (1)
노트

안녕하세요! MongoDB 연결은 이전 게시물을 참고해 주세요. . 먼저 express를 설치해 줍니다. npm install express . 그리고 MongoDB 스키마를 만들어줍니다. user.js const mongoose = require('mongoose'); const Account = new mongoose.Schema({ userId: { type: String, unique : true, required : true }, userPw: String, coin: Number, }); module.exports = mongoose.model('User', Account); userId에 있는 unique, required는 간단히 설명하면 unique : 중복값 저장 불가, required..
코딩/Node.js
2020. 1. 10. 16:58