Skip to content

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

Open
kevr wants to merge 1 commit into
sfbrigade:masterfrom
kevr:currency-backend
Open

[WIP, Don't merge!] feat: POST /api/currency/get, a step currency backend#106
kevr wants to merge 1 commit into
sfbrigade:masterfrom
kevr:currency-backend

Conversation

@kevr

@kevr kevr commented Sep 16, 2022

Copy link
Copy Markdown
Contributor

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 kevr@0cost.org

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 <kevr@0cost.org>
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