Skip to content

shashaBot/shashaBotAMA_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AskMeAnything Backend

The backend for talking to DialogFlow API using Node.js Client SDK.

Development

Steps to follow

  1. Create a new agent in dialogflow. This will create a project in your Google Cloud Platform. You can see its project ID in the settings of your dialogflow agent. YOu will need this soon.

  2. Next, follow the steps giver here in "Before you begin" section.

The authetication set up is a bit tricky so I'm leaving quick to point you in the right path if you get lost.

You have to create a service account with appropriate access and then credentials for it. Download private key as json file and store it anywhere safe on your system. 3. Fork the repo and clone your fork

  1. Run npm install or yarn in root directory.

  2. Make a .env file in the root directory with format as below:

PROJECT_ID = '<project-id>'
GOOGLE_APPLICATIONS_CREDENTIALS='full/path/to/client_secret.json'
PORT=<port-no>

Port is optional.

  1. Run npm start

Contributing

See the issues and stay tuned to the other repo (AskMeAnything) as well :)

Releases

No releases published

Packages

No packages published