-
Notifications
You must be signed in to change notification settings - Fork 0
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
Database setup #25
Database setup #25
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #25 +/- ##
===========================================
+ Coverage 26.31% 51.21% +24.90%
===========================================
Files 3 3
Lines 19 41 +22
Branches 0 2 +2
===========================================
+ Hits 5 21 +16
- Misses 14 20 +6
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove doubled yarn-error.log from .gitignore.
Adds get response to server to createGame. Adds `celebrate` as dependency to validate data. This needs database setup per #25. Error messages are generated automatically through celebrate. We needed to employ special function to change error response. Unfortunately celebrate does not easily allow to change http code per error. Generation of new random keys is done in database, as this is easier and more elegant. Database's definitions have been changed, see `databaseConnection.ts` Firebase token validation is yet to be done.
Some setup is required.
src/secrets.ts
with the contents:yarn start
setup tunneling with:yarn start
If everything worked correctly, you should see two tables created under your account:
Games
andPlayers
.Closes #4