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

[WIP, Don't merge!] feat: POST /api/currency/get, a step currency backend #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kevr
Copy link
Contributor

@kevr kevr commented Sep 16, 2022

This route does a very simple thing: it converts the number of steps that a device has into a coin + badge value, and presents those currency values to the requesting user.

It will also provide us a "single source of truth" when it comes to currency calculations for the application.

In the front-end, this route should be used to obtain a server-side, up-to-date record of these gamified currencies. The value can then be cached in client state to deal with user interaction animations.

Signed-off-by: Kevin Morris [email protected]

This route does a very simple thing: it converts the number of
steps that a device has into a coin + badge value, and presents
those currency values to the requesting user.

It will also provide us a "single source of truth" when it comes
to currency calculations for the application.

In the front-end, this route should be used to obtain a server-side,
up-to-date record of these gamified currencies. The value can then be
cached in client state to deal with user interaction animations.

Signed-off-by: Kevin Morris <[email protected]>
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.

1 participant