Challenge Overview
Challenge Overview
Welcome to the John Hancock Mobile integration challenge. We have already implemented the mobile game and the backend, now we will integrate them in this challenge.
Task Detail
All the test or mock data should be removed in this challenge, especially testData.js, mockRemoteServer.js, please delete these two files.
check the swagger REST API doc in backend code, and following are some implementation notes
login screen, call POST /api/v1/login to login, please also update the backend code to add "vitalityPoints" in "Player" model, which will be included in the response body too.
register screen, call POST /api/v1/register to register a new user
dashboard screen, when the screen becomes active, render with local data first, and call GET /api/v1/leaderboard/{id}/detail to get the latest tops and ranks of current leaderboard, then refresh again
leaderboard setting screen, when the screen becomes active, render with local data first, and call GET /api/v1/leaderboards to get all the leaderboards, then refresh again, call POST /api/v1/leaderboard/{id}/join to join a leaderboard
game over screen, when a game is over/completed, call POST /api/v1/leaderboard/{id}/points to update the player points(accumulated) of the current leaderboard, and call POST /api/v1/game/{id}/points to update the highest points(not accumulated, just of a single play) of the game if possible, and if a new badge is gained, call POST /api/v1/badge/{id}/gain to update in server side, add a new API POST /api/v1/vitalitypoints to update the vitality points
Design a Terms & Conditions page (add a link “Terms & Conditions” in login screen).
Use the same background that is used in the Badges screen.
The HUD should be the same as the Leaderboard Settings screen, but should say "Terms & Conditions" instead of "Leaderboard Settings".
The body of the screen should contain the text provided in the forum. The user should be able to scroll down to view everything.
Documents Provided
Ideal doc
Design spec and assets
Code of previous challenge to start
Important Notes
It is a gaming challenge, there are many details, if you are not clear please ask in the forum as early as possible, any assumptions without confirmation may not be accepted
Native build should work for iOS and Android.
Final Submission Guidelines
mobile game code that covers all the requirements
backend code that covers all the requirements
deployment guide(include detail verifications)
demo video is in scope