Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Latest commit

 

History

History
 
 

leaderboard

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Leaderboard

Demo

This is a port of Leaderboard to ShareDB.

In this demo, data is not persisted. To persist data, run a Mongo server and initialize ShareDB with the ShareDBMongo database adapter.

Install dependencies

Make sure you're in the examples/leaderboard folder so that it uses the package.json located here).

npm install

Build JavaScript bundle and run server

npm run build && npm start

Finally, open the example app in the browser. It runs on port 8080 by default: http://localhost:8080

For testing out the real-time aspects of this demo, you'll want to open two browser windows!