서민정

Add folders for the overall structure

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