-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] Public Leaderboard System #33
Comments
we need database and deploy it in some server |
It cannot be deployed via a website? |
i think localstorage can be a good option |
Perfect! Can you work on this issue? |
sure |
assigned |
you have already used local storage so we need to use databases, can i go for mongodb for that??? |
When will you make the PR @Srinja333? |
soon |
my localhost refuse to open how to run it? |
any error message, screenshot? upload as a draft PR. |
crbug/1173575, non-js module files deprecated. |
i have just run it in vs code without debugging |
it's ok make a draft PR let me see. |
how to do that? |
you got git installed? |
yes |
Did you fork this repo to your profile and clone it using Git?
…On Fri, 17 Mar 2023 at 21:12, Srinjay Kapri ***@***.***> wrote:
yes
—
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUGJUTPFJVHFRXWBCYLXYSLW4SA6LANCNFSM6AAAAAAVYWNRGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
no sorry |
i just clone from you |
@Srinja333 - any update? |
Work is ongoing.... I had exam so I missed some days..... |
Hey ! does this issue / feature need working on ? , I'd be happy to work on it , i have worked with mongoDb before. Cheers ! |
Yes. Sure, you can work on this. |
@Aditya1404Sal - I forgot to assign you to this issue, even though I commented. Can you work on getting this done by next week, please? Because, I want to release this feature soon. |
It will be done in a week |
hey, this issue is resolved or i can work with you ? |
@ujju2000 i had started the mongodb integration but it's taking up a considerable amount of time, so yeah you can takeover |
okay, we just have to save the scores in the database ? |
I believe we might need to use MongoDB Atlas in this case right? So that DB is publicly accessible? |
@ujju2000 @RuchirDixit - are both of you working on this? |
I am just working on this issue for the sake of learning if @ujju2000 completes it he can raise a PR or else I will once it is solved. |
Hi there! If we want to save a Highscore of a User we need to save it to a Database. A MongoDB would be pretty suitable for it because it has a free storage option. Setting up the Database and the corresponding express application is no big deal and I can create that quite quickly , but we need a host posibility for the backend so that the Database is always accessable for the Quizapp. My suggestion for the MongoDB Highscore Schema would be: username - a non unique username set by the user, how it is done already. (possibible duplicates, wich should be fine) To save and access the Highscores we should only need to swap the current localStorage logic with a POST/GET request to the express app. |
As of now the leaderboard/highscore only works locally (on the local computer), it would be amazing if the system can be website/server wide, but I think we may have to maintain a database or something for this.
The text was updated successfully, but these errors were encountered: