Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tips for noob #2

Open
jdlever opened this issue Sep 24, 2014 · 4 comments
Open

Tips for noob #2

jdlever opened this issue Sep 24, 2014 · 4 comments

Comments

@jdlever
Copy link

jdlever commented Sep 24, 2014

I copied the code directly from github, and can't seem to get this to work (probably because I've known node.js exists for the better part of 2 hours).

Anyways...how are you supposed to fire up the server? Do you use git bash and start the server.js file? Because i keep getting 'line 1 syntax error near unexpected token '(' ...if that's the case. I tried entering the address localhost:8081 and that won't work. I don't even have the slightest idea what the node.js cmd prompt does.

Any tips are appreciated. Thanks, Jeff

@zurez
Copy link

zurez commented Oct 25, 2014

node server.js in the terminal should do the trick

@stahlmanDesign
Copy link

Another tip if you're new to this, if you type node server.js and see it is working, any code you modify won't take effect. If you change the code and want to see the effects, press ctrl-c to kill the first process that's running, and then type node server.js again (or up arrow + enter) for it to use your latest code.

@matthewboman
Copy link

After running the server, you have to open "localhost:8081/scrape" in a browser to run the function.

@vinu-phoenix
Copy link

Install nodemon (npm install -g nodemon) if you want the server to restart automatically when changes are made to files. Use npm install --save nodemon if you want to save it locally for your project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants