Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/speakeasy-sdks/examples-vite-monorepo
A demo of a PNPM workspace monorepo which contains a Vite React app and a Speakeasy SDK
https://github.com/speakeasy-sdks/examples-vite-monorepo
Last synced: 1 day ago
JSON representation
A demo of a PNPM workspace monorepo which contains a Vite React app and a Speakeasy SDK
- Host: GitHub
- URL: https://github.com/speakeasy-sdks/examples-vite-monorepo
- Owner: speakeasy-sdks
- License: mit
- Created: 2024-02-17T14:51:37.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-17T14:53:11.000Z (9 months ago)
- Last Synced: 2024-04-28T05:14:42.625Z (6 months ago)
- Language: TypeScript
- Size: 66.4 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Speakeasy Monorepo Example
This repo demonstrates how to use Speakeasy SDKs in a monorepo containing a Vite
app. This is a worked example of the guidance found on the following page
relating to linked dependencies:https://vitejs.dev/guide/dep-pre-bundling
The SDK is generated in [`./packages/monorepo-sdk`](./packages/monorepo-sdk) and the Vite app is in [`./apps/console`](./apps/console). Take a look at the [`vite.config.js`](./apps/console/vite.config.ts) for the required config options.
## Running
```
pnpm i
pnpm dev
```Visit the URL and note how the SDK is used to fetch a UUID.