Skip to content

db 사용시 config/db.js에 있는 정보 사용 #17

@AYoungSn

Description

@AYoungSn

데이터베이스 커넥션 새로 생성하지 마시고 config/ 폴더에서 db.js에 있는 정보 불러서 사용해주세여
커넥션이 다 흩어져 있으면 찾기 어려워서요! 비밀번호가 다르다면 수정 후 사용하시면 되고 커밋할때 제외해주시면 됩니당

var db = require('../config/db'); // db.js 폴더 경로
db.query...

이런식으로 가져다가 쓰면 됩니당

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions