node express mongo vue
module.exports = {
dbUrl: 'mongodb://localhost:27017/nemv' // 로컬
}
// app.js 에서 index.js 파일 불러들임. index 파일은 파일명을 넘기지 않아도 된다.
const cfg = require('../config')
mongoose.connect(cfg.dbUrl, { useNewUrlParser: true }, err => {
...
}
이런식으로 몽고디비 연결 문자열을 작성해야 웹서버가 정상구동됨
Shift + Cmd + v
Cmd + k 누른다음 v
test
test
- test
- test
- test
- red
- green
- blue
- green
마크다운은 코드블럭을 <pre>
와 <code>
로 감쌉니다.