Giter Site home page Giter Site logo

Comments (4)

enuchi avatar enuchi commented on July 29, 2024 4

Hi @gox-ai @kickbox

See my comments on #37

Yes. Others are asking (#32) and I'm working on a fully functioning version to include with this repo.

For now if you want the quick version so you can work locally, you need to install webpack-dev-server, which is what Create React App uses. Just run these commands:

  1. Install webpack dev server: npm i -D webpack-dev-server
  2. Run webpack dev server: npx webpack-dev-server --mode development --port 8080
  3. Open the page you're working on in the browser: http://localhost:8080/about.html

Couple of notes:

  • Hot reloading should work. Just save your code changes and the page will reload.
  • As you said, you'll need to mock any server responses. If you actually try to call the server you'll get a google is not defined error in the browser. http://localhost:8080/main.html in my example app won't load since it calls the server, but about.html.
  • Your page will take up the full screen, so you may want to wrap it in a container that's the size of your dialog/sidebar to see what it will actually look like.

I have a solution on how to run your local code inside an actual google dialog/sidebar, and call the actual server functions. It works really well, it's just pretty complicated and needs cleaning up. Will post here when I have a version you can try out.

from react-google-apps-script.

enuchi avatar enuchi commented on July 29, 2024

Yup, there is, it just requires a lot of changes. I haven't had a chance to update the repo, but will do so as soon as I can.

from react-google-apps-script.

gox-ai avatar gox-ai commented on July 29, 2024

Hi enuchi, thats great news. Could you give some pointers as to how to do this?

from react-google-apps-script.

kickbox avatar kickbox commented on July 29, 2024

Okay @enuchi your comments seem very interesting. From where I stand it looks almost impossible to do that. Iam very much looking forward to your solution.

We can track using the other issue. Closing this.

from react-google-apps-script.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.