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

How do I dev it? #8

Open
gobengo opened this issue Apr 5, 2017 · 1 comment
Open

How do I dev it? #8

gobengo opened this issue Apr 5, 2017 · 1 comment

Comments

@gobengo
Copy link

gobengo commented Apr 5, 2017

I tried to npm install && npm test, but there were an errors.

One of them looks to be because of requires like require('Engine') even though Engine isn't on the default node path (inside node_modules). Running NODE_PATH=src npm test gets farther but still errors.

I tried to run ./examples/{chat,counter}/server.js and access http://localhost:3000, but neither works.

What am I missing?
@harmony7 how do I run tests or examples from a fresh clone?

@harmony7
Copy link
Member

harmony7 commented Apr 6, 2017

Regarding tests:

LiveResource wasn't written in TDD style, so unit tests were going to be added later.
The test code in ver0.1 (currently master branch) was very experimental and we never really had working tests. That experimental test code has been removed for ver0.2 (develop), so we don't have tests in that version either.

For either version, the JavaScript must be compiled into an output file.

For ver0.1 (master branch) do

npm install
npm run build-debug
cd examples/chat # or counter
npm install
npm start

For ver0.2 (develop branch) do this:

npm install
npm run build
cd examples/chat # or counter
npm install
npm start

I was able to get these to work right now on my local, please let me know if you have any problems with these.

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

2 participants