Secure Tunnels to Localhost
Let's assume that you want to test your bots in your development environment before deploying. You'll need to let Facebook connect to your PC and it should have SSL enabled.
We also help the process even easier by providing the expose script if you're using NodeJS. To do so:
- Install ngrok globally by running
npm i -g ngrok, and config auth if you want.
- Install NodeJS libraries by running
- Link global ngrok to your
npm link ngrok.
expose.jswith your domain. By default is
- From Cli, run
Now you get https url which can access from internet and an inspector at http://localhost:4040
Working with Frontend
We recommend you create your own CSS, JS file and hook into
admin_enqueue_scripts() instead of editing plugin files directly. However, if you still want to edit our files, we've setup scripts to make this process easier.
Giga Messenger uses ParcelJS, and BrowserSync to compiling scripts and live reloading. First, you'll need install dependencies.
npm install, if you've followed the steps in the previous section, skip this step.
npm run watchto watching file changes and compiling styles and scripts for development or
npm run buildto build them on production.