-
Notifications
You must be signed in to change notification settings - Fork 23
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-540 Add API Claim tutorial #611
Conversation
For reference, I already created a Hub entry for this - https://www.entando.com/page/en/hub#/bundlegroup/65 - with bundle and src. |
npm init --yes | ||
npm install --save express express-urlrewrite cors morgan | ||
``` | ||
3. Create `index.js` to provide two simple controllers - the first to supply a simple "Hello World" service, and the second as a basic health check service: |
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 not needed
* Access <http://localhost:8081/api/hello> to see a `Hello World!` response with a timestamp. | ||
* Access <http://localhost:8081/api/health> to see a standard `{"status:"UP"}` response. | ||
|
||
6. Finally, create `microservices/simple-node-ms/Dockerfile` so ent knows how to assemble the docker image for the service: |
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.
Docker
``` | ||
|
||
## Step 2. Connect the MFE to the MS using an API Claim | ||
1. Create an API Claim to connect the MFE to the MS. If different names were used for the MFE or MS, update the command accordingly. The `serviceUrl` parameter is used to set up `microfrontends/simple-mfe/public.mfe-config.json` for local testing and should match the settings in entando.json. |
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.
backtick entando.json
CMD [ "node", "index.js" ] | ||
``` | ||
|
||
## Step 2. Connect the MFE to the MS using an API Claim |
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.
rearrange header>>Use an API Claim to Connect the MFE to the MS
to keep the focus of tutorial on API Claims
No description provided.