corona-warn-app / cwa-map-public-frontend

Corona-Warn-App Map Public Frontend
https://map.schnelltestportal.de/
2 stars 2 forks source link

Testing web frontend gives proxy error #22

Closed MikeMcC399 closed 1 year ago

MikeMcC399 commented 2 years ago

Where to find the issue

Instructions in README.md

Describe the issue

Following the instructions in README.md to run the web front end locally leads to a proxy error. The map is shown, however no testing stations are shown on the map.

Steps to reproduce

npm install
npm run serve

In Google Chrome access http://localhost:9000 Type "Berlin" in search field of map front end Note error in terminal window http://localhost:9090/ [ECONNREFUSED]:

<e> [webpack-dev-server] [HPM] Error occurred while proxying request localhost:9000/api/centers/bounds?address=Berlin to http://localhost:9090/ [ECONNREFUSED] (https://nodejs.org/api/errors.html#errors_common_system_errors)
dreske commented 2 years ago

In proxy.conf.json the Backend needs to be configured. You could also configure the production url.

Mike McCready @.***> schrieb am Mo., 5. Sept. 2022, 13:55:

Where to find the issue

Instructions in README.md https://github.com/corona-warn-app/cwa-map-public-frontend/blob/main/README.md Describe the issue

Following the instructions in README.md https://github.com/corona-warn-app/cwa-map-public-frontend/blob/main/README.md to run the web front end locally leads to a proxy error. The map is shown, however no testing stations are shown on the map. Steps to reproduce

npm install npm run serve

In Google Chrome access http://localhost:9000 Type "Berlin" in search field of map front end Note error in terminal window http://localhost:9090/ [ECONNREFUSED]:

[webpack-dev-server] [HPM] Error occurred while proxying request localhost:9000/api/centers/bounds?address=Berlin to http://localhost:9090/ [ECONNREFUSED] (https://nodejs.org/api/errors.html#errors_common_system_errors) — Reply to this email directly, view it on GitHub , or unsubscribe . You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
MikeMcC399 commented 2 years ago

@dreske

In proxy.conf.json the Backend needs to be configured. You could also configure the production url.

Could you give exact instructions for this? I could not find any file with the name proxy.conf.json. What are the steps to use the production database of test stations?