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.
- Create an app on Pusher and copy your app's id, key, and secret.
- Clone this repository and
cd
into it. - Execute
npm install
oryarn
to download the dependencies. - Execute
PUSHER_APP_ID=XXXXXX PUSHER_APP_KEY=XXXXXX PUSHER_APP_SECRET=XXXXXX node server.js
to start the server. - Start sending JSON request to
http://localhost:3000/api
using Postman.
- A free Pusher account
- Node.js version 5 or greater
- Thanks to Pusher for sponsoring this tutorial.