Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.1 KB

README.md

File metadata and controls

26 lines (17 loc) · 1.1 KB

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.

Getting Started

  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.

Prerequisites

Built With

  • Pusher - APIs to enable devs building realtime features
  • Node.js - A JavaScript runtime

Acknowledgments

  • Thanks to Pusher for sponsoring this tutorial.