REST API using Node.js/Express that publishes events with Pusher
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
package.json
server.js
yarn.lock

README.md

node-api-pusher

Simple REST API server that publishes events using Pusher. This is meant to be used as the back-end for the project https://github.com/eh3rrera/feed-pusher-android.

You can follow the tutorial to build this application or jump straight to the code.

Requirements

Installation

  1. Create an app on Pusher and copy your app's id, key, and secret.
  2. Clone this repository and cd into it.
  3. Execute npm install or yarn to download the dependencies.
  4. Execute PUSHER_APP_ID=XXXXXX PUSHER_APP_KEY=XXXXXX PUSHER_APP_SECRET=XXXXXX node server.js to start the server.
  5. Start sending JSON request to http://localhost:3000/api using Postman.