Skip to content
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

Functioning user system + created schema for game database. #56

Merged
merged 3 commits into from
Mar 9, 2025

Conversation

latiose
Copy link

@latiose latiose commented Mar 6, 2025

Remember you have to do docker run -d -p 27017:27017 --name=my-mongo mongo:latest to check most of the changes.

@ElPandaP ElPandaP self-requested a review March 6, 2025 18:53
Copy link

@ElPandaP ElPandaP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't make sense to run "docker run -d -p 27017:27017 --name=my-mongo mongo:latest".
Configure the dockerfile so that it's done without typing those params, also if my-mongo is the name of the database maybe it would be better something like wichat-mongo

if (username.length < 3) {
setError('Username must be at least 3 characters long');
return;
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should also do validations on server

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They already exist

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think they only check if the field exists

}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do u keep commiting file changes with no real changes

bd/game-model.js Outdated
// });
//
// await match.save();
// }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do u add this class? And why in this folder?

Copy link
Author

@latiose latiose Mar 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its the data base structure that the game will be using, I created a new folder because nothing else fit

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then add it on a "questions" folder or refactor the users folder so that it's inside bd folder, it wouldn't make sense to have a bd folder while there are other bd-realted services outside that folder (users)

@ElPandaP ElPandaP merged commit edf7503 into master Mar 9, 2025
1 check failed
@ElPandaP ElPandaP deleted the UserDataBase branch March 9, 2025 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants