서민정

Add folders for the overall structure

/node_modules
/build
/client/node_modules
.DS_Store
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vscode
dev.js
./server/config/dev.js
const express = require("express");
const path = require("path");
const bodyParser = require("body-parser");
const app = express();
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
app.listen(port, () => {
console.log(`Server Running at ${port}`)
});
\ No newline at end of file
{
"name": "chatbot-app",
"version": "1.0.0",
"description": "chatbot-app",
"main": "index.js",
"engines": {
"node": "12.16.1",
"npm": "6.13.4"
},
"scripts": {
"start": "node index.js"
},
"author": "Minjeong Seo",
"dependencies": {
"actions-on-google": "^2.6.0",
"body-parser": "^1.18.3",
"dialogflow": "^0.8.2",
"dialogflow-fulfillment": "^0.6.1",
"express": "^4.16.4"
}
}
\ No newline at end of file
if (process.env.NODE_ENV === 'production'){
module.exports = require('./prod');
}else{
module.exports = require('./dev');
}
\ No newline at end of file
module.exports = {
googleProjectID: process.env.GOOGLE_PROJECT_ID,
dialogFlowSessionID: process.env.DIALOGFLOW_SESSION_ID,
dialogFlowSessionLanguageCode: process.env.DIALOGFLOW_LANGUAGE_CODE,
googleClientEmail:process.env.GOOGLE_CLIENT_EMAIL,
googlePrivateKey: JSON.parse(process.env.GOOGLE_PRIVATE_KEY),
mongoURI:process.env.MONGO_URI,
}
\ No newline at end of file
const express = require('express');
const router = express.Router();
\ No newline at end of file