docs: document JS SDK installation (#9611)

- Add a page introducing JS SDK + how to install and use it (generally)
- Adjust admin tips on how to send requests
- Adjust storefront tips to mention JS SDK
- Add in the API reference intro how to install JS SDK
- Other related additions / changes

Closes DX-957
This commit is contained in:
Shahed Nasser
2024-10-18 15:47:40 +03:00
committed by GitHub
parent 5b91d71318
commit 85865c18ff
11 changed files with 666 additions and 184 deletions

View File

@@ -8,11 +8,15 @@ Check out the [Medusa v2 Documentation](https://docs.medusajs.com/v2).
<Space bottom={8} />
<Note type="soon">
<H3 className="!mt-0">Medusa JS SDK</H3>
JavaScript client libraries are coming soon for Medusa v2.
To use Medusa's JS SDK library, install the following packages in your project (not required for admin customizations):
</Note>
```bash
npm install @medusajs/js-sdk@rc @medusajs/types@rc
```
Learn more about the JS SDK in [this documentation](https://docs.medusajs.com/v2/resources/js-sdk).
### Download Full Reference