DEV Community

Discussion on: I made a Game with vanilla HTML CSS and JavaScript

Collapse
 
salyadav profile image
Saloni Yadav

Hey, can you throw some light on how did you make the global leaderboard? I have been developing a game and thought I need mongoDB and node for keeping a track of username and their scores. But I dont see any such thing your codebase. Can you give a brief of how you added this? Thanks :)

Collapse
 
abthakur profile image
Ayushman

For the global leaderboard I have actually used nodejs + mongodb(and called the api from my frontend when necessary), but due to security reasons I don't have that code public in my GitHub. However, for the local highscore, I've used localstorage.

Collapse
 
salyadav profile image
Saloni Yadav

Security reasons, that makes sense :) I wanted to know if I was headed in the right direction. Thanks :)