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

troubles to run basic.js example #1

Closed
camous opened this issue Apr 11, 2016 · 4 comments
Closed

troubles to run basic.js example #1

camous opened this issue Apr 11, 2016 · 4 comments

Comments

@camous
Copy link

camous commented Apr 11, 2016

I'm farirly new to node world but I'm facing troubles running the basic.js example. I'm sure I'm just looking in the wrong direction.

I've followed the script from travis (https://travis-ci.org/CacheControl/json-rules-engine) in order to copy-cat the setup of the json-rules-engine. I've successfully ran into unit test with success.

however, how I could run basic.js ? if I go in ./examples folder and run node basic.js. I'm getting following message
image

any idea or direction to look for ?
many thanks.

@CacheControl
Copy link
Owner

@camous sorry about that, my fault entirely! The example was the last thing I worked on for this project, but then I left on holiday and just got back. As such, it's not entirely in a finished state as of yet. I'll look into this tonight and get back to you. Apologies again!

@CacheControl
Copy link
Owner

@camous I've fixed & updated the basic example on master - please let me know if you have any further issues, or questions about how to use.

I'll close this issue for now, since it resolves your original issue. However, please do free to open more if you run into problems.

finally, since you're one of the early discoverers of this library, I'd love to hear any feedback you may have on the api/documentation/etc.

@camous
Copy link
Author

camous commented Apr 18, 2016

@CacheControl I'm now able to run the example. that's cool.

Right now, I figured out that what I was trying to achieve was simpler than expected and might not requires a rules engine. However if my assumption is wrong in the future, I will give another try: I like the clear rules definitions and the event based actions.

However, and maybe nothing can be done here, the number of dependencies is high.
image

@CacheControl
Copy link
Owner

@camous cool, glad it worked for you!

re: the dependencies, when you install this as an npm package, it will be far smaller (640K in fact). When you do a git checkout of the entire repo, it downloads all the dev-dependencies, which are substantial.

CacheControl pushed a commit that referenced this issue Jan 18, 2020
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