Skip to content

Commit

Permalink
added to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikebbers committed Dec 8, 2023
1 parent 4184721 commit 60ee150
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/main/frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ BenchScape is a web application that consists of a React frontend and a Spring B

d. Start the React frontend as you normally would for development (using npm start). The frontend will now make API requests to your local backend server.

e. We are using dotenv as described at https://create-react-app.dev/docs/adding-custom-environment-variables/#what-other-env-files-can-be-used

2. **_Scenario B: Fetching Data from a Cloud-Based Backend_**

If you want to run the frontend and have it fetch data from a backend hosted in the cloud, follow these steps:
Expand All @@ -48,6 +50,8 @@ BenchScape is a web application that consists of a React frontend and a Spring B

d. Start the React frontend for production deployment (e.g., using npm build and a suitable web server). The frontend will now make API requests to your cloud-based backend.

e. We are using dotenv as described at https://create-react-app.dev/docs/adding-custom-environment-variables/#what-other-env-files-can-be-used

`Receive and Display Data:` The frontend receives JSON data from the backend as responses to its API requests. It then processes this data and displays it in a user-friendly format, such as a table.

## Spring Boot Backend
Expand Down

0 comments on commit 60ee150

Please sign in to comment.