Hello and welcome to the MUI repository for Embeddable.com ❤️ We wish to thank you for being one of our customers and welcome any feedback you might have.
npm i
# requires node 20 or later
This is how you push code changes to your Embeddable workspace
-
Head to https://app.embeddable.com and grab your API Key.
-
Build the code bundle:
npm run embeddable:build
-
Push the above code bundle to your workspace:
npm run embeddable:push -- --api-key <API Key> --email <Email> --message <Message>
- Head back to https://app.embeddable.com and "Create new Embeddable" using the components and models from your code bundle
This is a "Preview workspace" (local to you) that allows you make changes locally and see them instantly without needing to "Build and Deploy".
npm run embeddable:dev
It opens a "Preview" workspace, that uses your local components and models.
To embed your dashboard in a simple HTML file:
- click "Publish" on your dashboard and take a copy of your "API Key" and your "Embeddable Id"
- Add your "API Key" and "Embeddable Id" to the
src/embeddable.com/scripts/embedding-preview.cjs
file - Run
node src/embeddable.com/scripts/embedding-preview.cjs
- Open http://localhost:8080/