Follow this developer document [Documentation]https://developers.facebook.com/docs/messenger-platform/webhooks Note: make sure to enable Built-in NLP for the page
Open a new terminal tab in this directory.
$ npm install
Copy the file .sample.env
to .env
cp .sample.env .env
Edit the .env
file to add all the values for your app and page.
Create a collection called products
and data.products.json to it
cp .sample.env .env
Edit the .env
file to add all the values for your app and page.
npm run dev
If not already installed, install ngrok via download or via command line:
npm install -g ngrok
In the directory of this repo, request a tunnel to your local server with your preferred port
ngrok http 5000
- Proper error handling middleware
- Include some customer details in the purchase order email
- Unit tests
- Improve logging