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 | 29 | 30 |
Tags
- 자바기초
- 웹해킹기초
- GIT
- nodeJS
- 자료구조
- node.js
- CTF
- 포렌식
- mongoose
- 웹기초
- materialize
- 써니나타스
- Express
- gitbash
- bootstrap
- 워게임
- node
- 포렌식워게임
- MongoDB
- 자바문제풀이
- 웹해킹
- 뷰
- NavBar
- 웹개발
- 그래프
- wargame.kr
- 이진트리
- 자바
- 이진탐색트리
- 워게임추천
Archives
- Today
- Total
목록NoSQL (1)
보안 전공생의 공부
게시판 만들기 / back end + mongoose 정리
1. 게시물 model 만들기 //models/Post.js const mongoose = require('mongoose'); const postSchema = mongoose.Schema({ title:{type:String, required:true}, body:{type:String, required:true}, createdAt:{type:Date, default:Date.now}, updatedAt:{type:Date}, }); const Post = mongoose.model('post', postSchema); module.exports = Post; - Post의 schema 구성 -> title, body, createdAt, updatedAt createdAt:{type:Date, d..
WEB/Node
2021. 10. 18. 13:52