-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update README.md - Revert some docker, config changes - Removed unncessary files (hash.js, redis.js, elastic.js) - Change imports to use Satellite's (hash, redis, elastic, logger) - Add remove-empty-anchor to html/index.js - Remove some dependencies in package.json - Update lock file
- Loading branch information
1 parent
8f04242
commit 387350f
Showing
33 changed files
with
2,644 additions
and
1,702 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Parser Service: (To be updated when Parser service is dockerized and live) | ||
|
||
The Parser service parses posts from user's feeds to populate Redis | ||
|
||
## Install | ||
|
||
``` | ||
pnpm install | ||
``` | ||
|
||
## Usage | ||
|
||
### Normal mode | ||
|
||
``` | ||
pnpm start | ||
``` | ||
|
||
### Dev mode with automatic restarts | ||
|
||
``` | ||
pnpm dev | ||
``` | ||
|
||
By default the server is running on <http://localhost:10000/>. | ||
|
||
### Examples | ||
|
||
## Docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
NODE_ENV=development | ||
LOG_LEVEL=debug | ||
|
||
REDIS_URL=redis://localhost | ||
|
||
ELASTIC_URL=http://localhost | ||
ELASTIC_PORT=9200 | ||
# Max number of results per query | ||
ELASTIC_MAX_RESULTS_PER_PAGE=5 | ||
# Delay to check connectivity with Elasticsearch in ms | ||
ELASTIC_DELAY_MS=10000 | ||
|
||
# FEED_URL url used to access feed list | ||
FEED_URL=https://wiki.cdot.senecacollege.ca/wiki/Planet_CDOT_Feed_List | ||
|
||
# Milliseconds to wait after attempting to fetch the feed list when the server is not available | ||
FEED_URL_INTERVAL_MS=30000 | ||
|
||
# Period of time (seconds) that an unprocessed feed must wait before its | ||
# next processing attempt (due to previous attempt responding with HTTP 429) | ||
FEED_PROCESSING_DELAY_SEC=3600 | ||
|
||
# Feed job queue attempts | ||
FEED_QUEUE_ATTEMPTS=5 | ||
|
||
# Feed job queue delay(ms) | ||
FEED_QUEUE_DELAY_MS=60000 | ||
|
||
# Number of concurrent worker processors to run. Use * if you want to run | ||
# one per CPU. Use a number if you want to set it manually, up to a max | ||
# of the CPU count. If not set, we'll assume 1. | ||
FEED_QUEUE_PARALLEL_WORKERS=1 | ||
|
||
PARSER_PORT = 10000 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,38 @@ | ||
{ | ||
"name": "parser", | ||
"name": "@senecacdot/parser-service", | ||
"private": true, | ||
"version": "1.0.0", | ||
"description": "A service for parsing posts", | ||
"description": "A service for parsing feeds", | ||
"scripts": { | ||
"start": "node src/server.js" | ||
"dev": "env-cmd -f env.local node src/index.js", | ||
"start": "node src/index.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Seneca-CDOT/telescope.git" | ||
}, | ||
"author": "", | ||
"repository": "Seneca-CDOT/telescope", | ||
"license": "BSD-2-Clause", | ||
"bugs": { | ||
"url": "https://github.com/Seneca-CDOT/telescope/issues" | ||
}, | ||
"homepage": "https://github.com/Seneca-CDOT/telescope#readme", | ||
"dependencies": { | ||
"@elastic/elasticsearch": "7.16.0", | ||
"@elastic/elasticsearch-mock": "0.3.1", | ||
"@senecacdot/satellite": "1.25.0", | ||
"bull": "3.29.3", | ||
"bull-board": "2.1.3", | ||
"jsdom": "18.1.1", | ||
"normalize-url": "6.1.0", | ||
"rss-parser": "3.12.0" | ||
"@bull-board/api": "3.7.0", | ||
"@bull-board/express": "3.7.0", | ||
"@senecacdot/satellite": "latest", | ||
"bull": "3.22.0", | ||
"clean-whitespace": "0.1.2", | ||
"highlight.js": "11.3.1", | ||
"jsdom": "18.0.1", | ||
"linkify-html": "3.0.5", | ||
"linkifyjs": "3.0.5", | ||
"normalize-url": "6.0.1", | ||
"rss-parser": "3.12.0", | ||
"sanitize-html": "2.5.3" | ||
}, | ||
"engines": { | ||
"node": ">=14.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel-jest": "27.3.1", | ||
"env-cmd": "10.1.0", | ||
"nodemon": "2.0.7" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.