Sample application on building a chat app using Pusher.
- Open the terminal (or command prompt if you're on Windows) and run these commands
$ git clone https://github.com/pmbanugo/Pusher-Auth0-ChatApp.git
$ cd pusher-auth0-chatapp/src
$ npm install
- Create a new application on Pusher. Select VanillaJS and NodeJS as your frontend and backend stack.
- Signup and Create a new client with Single Page Application as the application type on Auth0
- In
server.js
copy and Replace the placeholders APP_ID, APP_SECRET, and APP_KEY, with the keys from your pusher dashboard. - In
index.js
copy and replace Client_ID and DOMAIN_NAME with the values in the settings tab on Auth0 - Run
npm start
in the command line to start the application. - Open the web app on the browser.
...
...