chandulal / Hackathon-Mumbai

Facebook chatbot for Mumbai Hackathon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ngrok is require to make your local app to publically available

eg. to expose localhost:4567 to publically available, you need to run below command.

./ngrok http 4567

----------

To start node server, run below command

node main.js

----------
for config you need to install config:

npm install config

----------

To working with json file need jsonfile npm:

    npm install --save jsonfile

-----------

To generate random number install:

    npm install mathjs

------------
Need to run below command for page token, if page token changes:

curl -ik -X POST "https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=<page token>"

------------
To start mysql : mysql.server start
To stop mysql : mysql.server stop

-------------

To send OTP, you need to install:

    npm install twilio

-------------
To send push notification, you need to install:

    npm install fcm

-------------
deployment steps in heroku:
1. need to create account in heroku
2. need to install heroku webkit
3. create Procfile and add run command. for node js we have added web: node main.js
4. run: heroku login
5. go to project directory and run: heroku create
6. run: git push heroku master and heroku ps:scale web=1
7. run: heroku open to see your app
8. for logs run : heroku logs --tail

About

Facebook chatbot for Mumbai Hackathon


Languages

Language:JavaScript 100.0%