Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datamap [♻️ Refactoring] : 핀 클릭, 상세보기, 스크랩 , 장소 목록 #24

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// IntelliSense를 사용하여 가능한 특성에 대해 알아보세요.
// 기존 특성에 대한 설명을 보려면 가리킵니다.
// 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요.
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "프로그램 시작",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/index.js"
}
]
}
16 changes: 8 additions & 8 deletions config/database.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
const mysql = require('mysql2/promise');
const mysql = require("mysql2/promise");

// 본인의 DB 계정 입력
const pool = mysql.createPool({
host: '',
user: '',
port: '',
password: '',
database: ''
host: "localhost",
user: "moonyaeyoon",
port: "3306",
password: "yaeyoon1004!",
database: "citydata",
});

module.exports = {
pool: pool
};
pool: pool,
};
12 changes: 6 additions & 6 deletions config/pushConnect.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const admin = require("firebase-admin");
// const admin = require("firebase-admin");

let serviceAccount = require("../pinple-24129-firebase-adminsdk-kyntj-da88679fe6.json");
// // let serviceAccount = require("../pinple-24129-firebase-adminsdk-kyntj-da88679fe6.json");

admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
});
// admin.initializeApp({
// credential: admin.credential.cert(serviceAccount),
// });

module.exports = admin;
// module.exports = admin;
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const cors = require('cors');
const cors = require("cors");
const express = require("./config/express");

const port = 4000;
express().listen(port);
console.log(`${process.env.NODE_ENV} - API Server Start At Port ${port}`);
console.log(`${process.env.NODE_ENV} - API Server Start At Port ${port}`);
Loading