Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
/ leaderboard Public archive

A simple leaderboard to allow display and aggregation of user metrics

Notifications You must be signed in to change notification settings

mapswipe/leaderboard

This branch is 1 commit ahead of master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

16bfefe Β· Dec 11, 2022

History

22 Commits
Aug 30, 2019
Apr 16, 2021
Jan 9, 2020
Jan 9, 2020
Mar 9, 2020
Jun 23, 2020
Mar 9, 2020
Mar 9, 2020
Dec 11, 2022

Repository files navigation

MapSwipe Leaderboard

https://leaderboard.mapswipe.org

A simple leaderboard to allow display and aggregation of user metrics for the MapSwipe app.

Install and build

To get started, simply run

yarn install

yarn build

Development

To run on local, run

yarn start

This will run the app with local data (not API call) located in lib/json. This folder is ignored in the repo. You can create your own by downloading from Firebase console (Database Tab) those records:

  • users as src/lib/json/msf-mapswipe-users-export-v1.json
  • v2/users as src/lib/json/msf-mapswipe-users-export.json

To run on local with real data, simply run

yarn start:prod

As Firebase API have a limited number of API call, it would better to use real data just as final tests before deployment.

Deploy

The app is deployed using Firebase. You can access the live version of the leaderboard at leaderboard.mapswipe.org To deploy a new version, you will need to use the Firebase login and run:

On staging

yarn deploy:staging

On prod

yarn deploy:prod