dialogflow-conversation-components-nodejs icon indicating copy to clipboard operation
dialogflow-conversation-components-nodejs copied to clipboard

how to use without firebase?

Open dcsan opened this issue 6 years ago • 1 comments

I want to run my own node service but there seem to be some useful helper methods here. how do i use this codebase without firebase?

how should this be rewritten in the context of a vanilla express app?

exports.dialogflowFirebaseFulfillment = functions.https.onRequest(app);

dcsan avatar Oct 06 '19 20:10 dcsan

From the library README:

const express = require('express')
const bodyParser = require('body-parser')

// ... app code here

const expressApp = express().use(bodyParser.json())

expressApp.post('/fulfillment', app)

expressApp.listen(3000)

Fleker avatar Oct 07 '19 14:10 Fleker