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

chore: define the sdk #3

Open
machuwey opened this issue Nov 3, 2024 · 2 comments · May be fixed by #10
Open

chore: define the sdk #3

machuwey opened this issue Nov 3, 2024 · 2 comments · May be fixed by #10
Assignees

Comments

@machuwey
Copy link
Collaborator

machuwey commented Nov 3, 2024

Build a simple sdk javascript package that enables easier interaction with strapex backend.

The sdk should approximate to stripe-js.

Please refer to
example integration

// TODO: specify

@machuwey machuwey added the good first issue Good for newcomers label Nov 3, 2024
@sandragcarrillo
Copy link

Hi, would like to contribute in this issue. Would it be only the design specification right?

@machuwey
Copy link
Collaborator Author

machuwey commented Nov 10, 2024

Hi, would like to contribute in this issue. Would it be only the design specification right?

Hello Sandra, yes for now you can work on the specification, for this issue is essential to take a look how
an ecommerce site and the strapex backend are interacting. Plus have a look a toy example of how the stripe-js looks like.

Right now the goal should be to achieve something minimal working. Please feel free to discuss and propose changes.

As reference take this repo template that will integrate the sdk, at this moment, we do it raw without wny abstraction, meaning the the backend url is hardcoded, which, for example, should be instead hardcoded as default api endpoint in the sdk. (The user should be able to pass to the sdk his desired endpoint)

As this is the specification task for now, feel free to work on sdk/README.md if you consider it appropiate.

@sandragcarrillo sandragcarrillo linked a pull request Nov 13, 2024 that will close this issue
@machuwey machuwey removed the good first issue Good for newcomers label Nov 21, 2024
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 a pull request may close this issue.

2 participants