ServerDate.js fails to load when testing #14

Closed
kylemcdonald opened this Issue Mar 4, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@kylemcdonald

Steps to reproduce:

mkdir serverdate-test
cd serverdate-test
npm install serverdate
cp node_modules/serverdate/Node.js/* .
npm install
node server.js

Open in browser, e.g., http://localhost:51539

Open inspector and click Network tab, ServerDate.js says "(pending)" indefinitely.

Edit: I'm new to Node.js and Express.js, and it looks like I was expecting the wrong thing from this test example? I'm still not sure how to get the test running though.

@NodeGuy

This comment has been minimized.

Show comment
Hide comment
@NodeGuy

NodeGuy Nov 18, 2014

Owner

I'm sorry I didn't respond sooner; I just realized that I have to manually "watch" my own Github project to receive notifications.

The problem is that you didn't copy the whole file structure properly for the test to work.

Try this instead:

mkdir serverdate-test
cd serverdate-test
npm install serverdate
cd node_modules/serverdate/Node.js
npm install
node server.js
Owner

NodeGuy commented Nov 18, 2014

I'm sorry I didn't respond sooner; I just realized that I have to manually "watch" my own Github project to receive notifications.

The problem is that you didn't copy the whole file structure properly for the test to work.

Try this instead:

mkdir serverdate-test
cd serverdate-test
npm install serverdate
cd node_modules/serverdate/Node.js
npm install
node server.js

@NodeGuy NodeGuy closed this Nov 18, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment