This is a realtime server for broadcasting click events. It is implemented in Kotlin (compiled to Javascript) and uses Pusher for its realtime feature. You can find a client android application that responds to the realtime click events here. Also, see here for a tutorial on how this project works.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You need to have the following before you can setup and test this project on your local machine:
- A free Pusher account
- Node.js version 5 or greater
- Gradle
- Create an app on Pusher and copy your app's id, key, and secret.
- Clone this repository and
cd
into it. - Execute
npm install
to download dependencies. - Update src/main/kotlin/realtimecounter/App.kt with your Pusher Credentials.
- Execute
gradle build
to build the project and javascript files. - Then execute
node build/app.js
to start the realtime server. - The server is now accessible at
http://localhost:9999
. You install the accompanying android app here to interact with this server.