Skip to content

Commit 92df9da

Browse files
authored
Update Message App to reference updated React app (no code changes) (#3848)
* Update Readme.md * Add files via upload * Update Readme.md * Add files via upload * Update Readme.md
1 parent 5db8299 commit 92df9da

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

javav2/usecases/creating_message_application/Readme.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ selecting **Send message** after data is entered for each row.
6666

6767
The React application shows you how to work with Amazon SQS messages. The application posts a message to your Amazon SQS queue and it polls the Amazon SQS queue for new messages and displays them. You can enter a message and a user and then click **Send Message**.
6868

69-
![AWS Messaging application](images/clientReact.png)
69+
![AWS Messaging application](images/app.png)
7070

7171
After the message is sent, the application displays the message, as shown in the following figure.
7272

73-
![AWS Messaging application](images/clientReact2.png)
73+
![AWS Messaging application](images/app1.png)
7474

7575
The following describes how the application handles a message:
7676

@@ -533,14 +533,14 @@ Create the React SPA that consumes the JSON data returned from the
533533
Spring REST API. To start, download files from the
534534
following GitHub repository. Included in this repository are instructions
535535
on how to set up the project. Click the following link to access the
536-
GitHub location [sqs-chat web client](https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/resources/clients/react/elwing/src/plugins/sqs-chat/README.md).
536+
GitHub location [sqs-chat web client](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/resources/clients/react/elwing).
537537

538-
In the instructions for the React app, you'll see directions to replace the `BASE_URL` value.
538+
In the instructions for the React app, you'll see directions to replace the `BASE_URL` value located in **plugins\sqs-message\src\config.json**.
539539
The React app uses the `BASE_URL` value to communicate with the Spring app.
540540
Be sure you use the same port you used to start the Spring app above. For example, use `http://localhost:8082/`
541541
for the `BASE_URL` value, if that is the port you used.
542542

543-
You must modify the **AwsService.js** file so that your React requests work with your Java backend. Update this file to include the following code.
543+
Ensure that the **AwsService.js** file contains the following logic so that your React requests work with your Java backend.
544544

545545
```javascript
546546

Loading
Loading

0 commit comments

Comments
 (0)