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

Add routes, basic logic on Home #31

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

tienpv222
Copy link

@tienpv222 tienpv222 commented Nov 16, 2018

Fixes #26

qxegsvijct

Changes:

  • Add 2 main routes for core features: /, /story
  • Add basic logic on route /, including list stories, create story, and join story.
  • Move logic in app.js to proper route
  • Add config.js for general data like PORT or SERVER, make it easier to reconfigure on production.

Notes:

  • The choice of names (game, playerID,...) is based on boardgame.io's names to not cause confusion through out codes. The terminology such as story, writer will only be shown to end users.
  • The process of finding an available slot to join a game is currently not supported by the server api, so we have to loop the requests from the client til found one (check joinGameRequest()). This logic can be change once boardgame.io upgrades their api.

Todo:

  • After a successful join request, we get the playerCredentials. Next step is to navigate to /story after users click join, with the playerCredentials and other game info.
  • Logic on route /story

@seanprashad seanprashad self-requested a review November 16, 2018 17:59
@seanprashad
Copy link
Contributor

Thanks for rebasing @pynnl - this is still on our radar for a review soon

Copy link
Collaborator

@vldmrkl vldmrkl left a comment

Choose a reason for hiding this comment

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

@pynnl thanks for the contribution! You did a great job.
Your PR looks good to me. Let's wait for @seanprashad and @Mera-Gangapersaud review.

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.

3 participants