Skip to content

Conversation

@michalsmiarowski
Copy link
Contributor

@michalsmiarowski michalsmiarowski commented Jun 7, 2021

Depends on https://github.com/keep-network/website-backend/pull/17

Get APY result from the website-backend instead of counring it on the frontend.

Steps to run it locally:

  1. website-backend: go to the /calculate-apy route in flask.py and change line

    @cross_origin(origins=re.compile('https://(.+\.)?keep\.network'))

    to

    @cross_origin(origins=http://localhost:<host_number_of_the_frontend_app'))

    Rebuild and rerun the docker image after (you will probably have to also remove the current image before reruning it)

  2. Frontend app: Got to redux.js and change API_URL variable to:

    export const API_URL = "http://localhost:<host_number_of_the_backend_app>"

Get APY result from the website-backend instead of counring it on the frontend.
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.

2 participants