Comments (2)
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.
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)
- Cannot find module 'sql.js' HOT 3
- readme info didn't work for me HOT 1
- Proxy don't work after production build HOT 2
- Error on npm run server in the starting-point branch HOT 1
- No data showing
- Deploy to Heroku without create-react-app and with API HOT 1
- How to incorporate react-router? HOT 3
- Proxy error: Could not proxy request HOT 4
- Cannot get route when deployed to heroku HOT 18
- npm start produces page with no data HOT 2
- Can We use Single Package.json File For Both Node (Backend) and React (Frontend) and Can Run through single Script Command HOT 2
- Why create start-client.js HOT 1
- Invalid Host Header
- Example VSCode Launch Script Configuration
- Deploying manually
- Cannot GET /register on heroku server error
- Unable to access any of my routes when deployed to heroku...working fine on localhost HOT 1
- Cannot "npm install" HOT 1
- What about the api server being hosted ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from food-lookup-demo.