Skip to content
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

Update tutorials to use API client libs, and update them to base them on a React frontend #113

Merged
merged 3 commits into from
Mar 31, 2022
Merged

Conversation

gtardif
Copy link
Contributor

@gtardif gtardif commented Mar 29, 2022

  • Move React tutorial as the second one, before Docker CLI commands and extensions with backend
  • change Docker CLI tutorial and backend tutorial to be based on React frontend and use client API libs

…ker CLI tutarial to use react and import api-client

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
@@ -0,0 +1,3 @@
interface Window {
ddClient: any;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the plan for providing a complete type definition for ddClient?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx, I think we can remove this any definition (replaced by importing a typescript library that has all type definition), also mentioned in this PR. I'll include removing this global that should not be needed anymore

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
@@ -15,17 +15,36 @@ In the `minimal-backend` sample folder, you can find a ready-to-go example. It r
├── Makefile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the order of the tutorials has changed, this tutorial is the last one now. Therefore, at the very bottom of this file, I'd remove the following:

## What's next?
See the next [tutorial](../react-extension) to create a ReactJS-based extension.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch :)

@@ -15,14 +15,45 @@ In the `minimal-docker-cli` sample folder, you can find a ready-to-go example th
.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the end of this page, update the What's next? link to point to the next tutorial in the new order.

…rder

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
Copy link
Contributor

@felipecruz91 felipecruz91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@gtardif gtardif merged commit f9d4c11 into docker:main Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants