openfga / sdk-generator

OpenFGA Client SDK Generator
Apache License 2.0
14 stars 30 forks source link

feat(js-sdk): add example js project #305

Closed ewanharris closed 4 months ago

ewanharris commented 5 months ago

Description

Adds an example for the JS SDK that copies the structure of the other SDKs of doing:

I made the following choices here:

These two choices are what primarily drove the require for the >=16.13.0 (earliest 16 LTS) value in the examples engines.node field, although there is no check here so earlier versions will error with a potentially unhelpful error (is it worth adding a check?).

References

Closes out #198 JS SDK PR: https://github.com/openfga/js-sdk/issues/63

Review Checklist