-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat: otter sdk training - how to use the otter sdk #2493
base: feat/otter-training
Are you sure you want to change the base?
Conversation
07f2aaf
to
fa63274
Compare
☁️ Nx Cloud ReportCI is running/has finished running commands for commit d544e8d. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/exercise/app.component.ts
Outdated
Show resolved
Hide resolved
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/solution/app.component.ts
Outdated
Show resolved
Hide resolved
const localStorageStates: Record<string, Serializer<any>>[] = [/* Store to register in local storage */]; | ||
const storageSync = new StorageSync({ | ||
keys: localStorageStates, rehydrate: true | ||
}); | ||
|
||
const rootReducers = {}; | ||
|
||
const metaReducers = [storageSync.localStorageSync()]; | ||
const runtimeChecks: Partial<RuntimeChecks> = { | ||
strictActionImmutability: false, | ||
strictActionSerializability: false, | ||
strictActionTypeUniqueness: !environment.production, | ||
strictActionWithinNgZone: !environment.production, | ||
strictStateImmutability: !environment.production, | ||
strictStateSerializability: false | ||
}; |
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.
we should remove all the @ngrx
stuff, it's adding a lot of noise and is not the relevant for the sdk training
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 cleaned up the app.config.ts
file, but I left the @ngrx
dependencies in the package.json
files since some are peer dependencies for other packages. What do you think?
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.
we are already installing using --legacy-peer-deps
so I don't think the warnings will matter
there is no reason for @ngrx
to be used in the training so we can safely remove the dependency
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/exercise/app.component.ts
Outdated
Show resolved
Hide resolved
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/solution/app.component.ts
Outdated
Show resolved
Hide resolved
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/instructions.md
Outdated
Show resolved
Hide resolved
fa63274
to
97cfa4c
Compare
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/exercise/app.component.html
Outdated
Show resolved
Hide resolved
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/exercise/app.component.html
Outdated
Show resolved
Hide resolved
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/solution/app.config.ts
Outdated
Show resolved
Hide resolved
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/exercise/app.component.ts
Outdated
Show resolved
Hide resolved
97cfa4c
to
b46170a
Compare
b46170a
to
d544e8d
Compare
"options": { | ||
"script": "extract" | ||
}, | ||
"inputs": [ |
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 following file seems missing {projectRoot}/openapitools.json
(if not already part of source
)
Proposed change
How to use the Otter SDK step
The goal is for the user to create a fetch client and use the pet API to display the results in the UI
Related issues
- No issue associated -