Skip to content

perfectmak/kotlin-realtime-counter-server-pusher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Realtime Counter (Kotlin Nodejs Server)

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.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You need to have the following before you can setup and test this project on your local machine:

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 to download dependencies.
  4. Update src/main/kotlin/realtimecounter/App.kt with your Pusher Credentials.
  5. Execute gradle build to build the project and javascript files.
  6. Then execute node build/app.js to start the realtime server.
  7. The server is now accessible at http://localhost:9999. You install the accompanying android app here to interact with this server.

Built With

  • Kotlin - Static Typed programming language
  • Pusher - APIs to enable devs building realtime features

About

Code for Pusher Reatlime Counter Tutorial in Kotlin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages