Discuss Scratch

dev_chi
New Scratcher
11 posts

How do I use the scratch-gui NPM package in my existing web application?

Just wondering if I could get help how to use the scratch-gui NPM package, in my existing web application?

So I want the Scratch editor to be embedded on my web application, by using the scratch-gui npm package. But I'm just confused on how I would do this.

I've already installed the scratch-gui npm package on my application by doing:
  • npm i scratch-gui

Now I just need to use this npm package, to have the Scratch editor in my web app, but I'm just not sure how to use this package..

ninjaMAR
Scratcher
1000+ posts

How do I use the scratch-gui NPM package in my existing web application?

Do you mean hosting the gui on localhost and embedding localhost?
dev_chi
New Scratcher
11 posts

How do I use the scratch-gui NPM package in my existing web application?

ninjaMAR wrote:

Do you mean hosting the gui on localhost and embedding localhost?

Yes, so I want to host the Scratch GUI on an existing website I have previously created. So that the Scratch GUI is embedded on that website.

Powered by DjangoBB