crawler-find-word
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "crawler-find-word", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "crawler service", | ||
"main": "crawler-find-word.js", | ||
"scripts": { | ||
"test": "mocha --reporter spec" | ||
"test": "mocha --reporter spec", | ||
"start": "nodemon ./crawler-find-word.js localhost 9999" | ||
}, | ||
@@ -9,0 +10,0 @@ "author": "Idan Gvili", |
@@ -12,3 +12,3 @@ ## Simple but powerful crawler - find phrase deep in the web | ||
Review bugs you found or feature you want in our Slack click this [invitation](https://join.slack.com/t/crawler-find-word/shared_invite/enQtMzYyOTcyNjE5MDEzLTc4NWM3Y2QyZmNiMWY5OWJhMGVkMzNlZWEyOGQ2NWVjMmMwMjFlZWUyNDkwOTRkZmVmMjIxZDMzNjU0ZTdhZWU) | ||
Review bugs you found or feature you want in our Slack click this Slack [invitation](https://join.slack.com/t/crawler-find-word/shared_invite/enQtMzYyOTcyNjE5MDEzLTc4NWM3Y2QyZmNiMWY5OWJhMGVkMzNlZWEyOGQ2NWVjMmMwMjFlZWUyNDkwOTRkZmVmMjIxZDMzNjU0ZTdhZWU) | ||
@@ -20,3 +20,4 @@ ## Features: | ||
Use event driven API, Raise 'Done' event when process ends. | ||
Return usefull statistical data. | ||
Return usefull statistical data. | ||
Enable Docker hosting | ||
Use Cheerio to find word or phrase in the DOM. | ||
@@ -54,6 +55,17 @@ Tested with Mocha and Chai. | ||
Running `nodemon ./crawler-service.js localhost 3000` will run the unit tests with debug mode. | ||
Running `nodemon ./crawler-find-word.js localhost 3000` will run the unit tests with debug mode. | ||
## Test | ||
Running `npm test` will test. | ||
Run the command `npm test` for Mocha & Chai testing unit. | ||
## Deploy to Docker | ||
Run command to build Docker image from the project directory | ||
`docker build -t node-crawler-dev-env .` | ||
Run command to create Docker instance | ||
`docker container run -p 9999:80 --name node-crawler-app --rm -v local-drive:/usr/src/app node-crawler-dev-env:latest` | ||
@@ -21,3 +21,3 @@ 'use strict'; | ||
srv.eventHandler.on('done', knownPageGetData); | ||
srv.eventHandler.on('done', print); | ||
srv.crawl('https://codeburst.io/javascript-unit-testing-using-mocha-and-chai-1d97d9f18e71', 'Mocha', 1); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11204
9
69