-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENDOC-545-B new branch for Run-local #580
Conversation
``` | ||
3. Startup one or more of the frontend widgets, each from its own shell. You can stop the application using `Ctrl+C`. This command runs React in development mode so any changes you make to the source files should be immediately seen in the browser. | ||
2. Start up the Spring Boot application `conference-ms`. The logs will display in the console and you can stop the application with `Ctrl+C`. Keep the microservice running while the MFEs run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"while the MFEs run" doesn't feel right here, like the MFEs will run to completion instead of continuing to run until the user stops them. in the latter case "while the MFEs are running" works better, implying user oversight and not a timed or event driven process that will end on its own
If you are not logged in, you'll be redirected to do so. Log in using the following credentials. | ||
* Username: user | ||
* Password: user\ | ||
Once logged in, you will see the table widget with some generated data. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace "some" with a more precise and descriptive term. sample data? default? "some" doesn't give any insight into where the data is coming from, how/if it can be altered, what kind of data to expect, etc.
|
||
#### Form Widget notes: | ||
1. If you are still running the previous micro frontend, click `Ctrl+C` to end the process |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to avoid the issue of specifying / not specifying the previous mfe, especially since this applies to any mfe and not one in particular, maybe just rephrase the instruction in the context of why it's important, like you need to ensure the localhost port is available to test the current mfe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's so complex that it needs to be pointed out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i guess it depends on the audience. not knowing much about how things work the user wouldn't realize that the whole point is to free up the port. i kind of think it's worth noting, just tacking that on the end of the sentence for clarity, but your call
3. Install and start your widget with the command: | ||
|
||
npm install && npm start | ||
The form to enter the name and location for conferences should open in your browser. You may enter and save new data to see it in the other MFEs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"of conferences" (not for)
something like "the data you enter and save will appear in the other MFEs" avoids the singular awkwardness and flows better and avoids the implication that changing the data in other MFEs is for its own sake, just to see the updates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's really irrelevant whether it's singular or plural and also a style thing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's interpretation, not style
|
||
If you want to modify a different row in the database, edit the `index.html` file in the public folder `ui/widgets/YOUR-ENTITY-NAME/detailsWidget/public`. Change the `id` attribute in this line: | ||
1. If you are running the previous micro frontend, click `Ctrl+C` to end the process |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment
'-Dkeycloak.migration.strategy=IGNORE_EXISTING', | ||
``` | ||
* In the same file, add a persistent volume under `volumes`: | ||
2. In this blueprint generated project, Docker Compose persists Keycloak data across restarts by default. If you want your data to reset on restarts: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blueprint-generated
* In the same file, add a persistent volume under `volumes`: | ||
2. In this blueprint generated project, Docker Compose persists Keycloak data across restarts by default. If you want your data to reset on restarts: | ||
|
||
* Edit the `svc/keycloak.yml` file. Replace `-Dkeycloak.migration.strategy=IGNORE_EXISTING`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is the comma included in the edit? can just say replace ignore... with overwrite... ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comma is part of the code, it should be inside the backtick. It's easier/clearer to explain a whole line than a part of one. And it's easier to compare what changed
* Keycloak changes should now be persistent. You can reset your Keycloak database by emptying the `src/main/docker/keycloak-db` directory and restarting the container. | ||
* Keycloak should now reset every time you restart. | ||
|
||
2. Error `User is not authenticated` : If you see this message after starting the MFEs, it is likely that your Keycloak application is not running or the `.env.local` file is not configured properly. Check if Keycloak is running; otherwise, update the configuration in `microservice/conference-x/.env.local`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would rephrase "if you see"; whether or not you see it is different from whether or not it's generated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is really down in the weeds... and a style issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kind of. more about precision
@@ -18,7 +18,7 @@ The following steps utilize the ent bundle CLI. | |||
``` sh | |||
ent bundle svc start keycloak | |||
``` | |||
2. Start up the Spring Boot application `conference-ms`. The logs will display in the console and you can stop the application with `Ctrl+C`. Keep the microservice running while the MFEs run. | |||
2. Start up the Spring Boot application `conference-ms`. The logs will display in the console and you can stop the application with `Ctrl+C`. Keep the microservice running while the MFEs are run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my vote is "MFEs" are running (common phrasing/understanding trumps the word repetition) but if you're set against that then "MFEs run" like you had before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the run here is used in the command sense of the word, as in run the command. The tutorial is about running the components. I think this is fine and more accurate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i can appreciate that, but i think it's either "while the MFEs are running" or "when the MFEs are run"... "while" implies continued duration, whereas executing a command is done in an instant
No description provided.