Showing
6 changed files
with
63 additions
and
0 deletions
.gitignore
0 → 100644
index.js
0 → 100644
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 |
package.json
0 → 100644
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 |
server/config/keys.js
0 → 100644
server/config/prod.js
0 → 100644
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 |
server/routes/dialogflow.js
0 → 100644
-
Please register or login to post a comment