Giter VIP home page Giter VIP logo

Comments (2)

acco avatar acco commented on June 7, 2024

Hey @I-keep-trying

Great to hear this worked for you! What were the tweaks that you had to make to get it up and running? Would be great to incorporate so that this works out-of-the-box on a variety of machines.

The start-client.js is a little complex just so that this works on multiple platforms (Mac/Linux/Windows). If we were only running on a mac, this is all that we would need:

$ cd client && npm start

Because that command doesn't work the same on Windows, we need to take another route. So we use child_process#spawn to give us a multi-platform command for executing the start command in a child directory. The opts in start-script are mostly working with the child_process#spawn API. We "change the working directory" (cwd) to client and then run start in there.

If you're on Windows, it's possible the other demos you encountered were built with Mac/Linux-only strategies.

Hope this helps. Feel free to re-open / comment if you have more questions

A

from food-lookup-demo.

I-keep-trying avatar I-keep-trying commented on June 7, 2024

Hi,

I honestly could not remember, at first, what the issue was, and then I remembered that I replied to another person who had the exact same issue I had in the early stages of setup here and I described to him exactly what my problem was, and how I solved it.

I am on Windows, but most of the time, the Mac/Linux instructions don't get in the way. Anything they can do, I can do with my setup. If there is a problem, it's usually just a npm package I need or something easy to fix - in fact, I don't worry unless I see a whole separate "For Windows..." section, lol!

from food-lookup-demo.

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.