Detects the Current Thing before it becomes the Current Thing.
First, you will need to install Sqlite
Then, in your Node project, install the following package:
# npm
npm i -S @psysecgroup/current-thing-weather
#yarn
yarn add @psysecgroup/current-thing-weather
Finally, perform the following inside of your Node project:
echo 'GDELT_PATH=data' >> .env
echo 'GDELT_SQLITE_PATH=data/sqlite' >> .env
./update.sh
To keep your news archive in sync, run the following command periodically:
./update.sh
npm start
: Runs the standalone Current Thing Detector.npm run dev
: Runs the source code and recompiles on code changes.npm run lint
: Checks if your code is throwing syntax errors.npm run test
: Runs tests on your code to make sure it's working.npm run build
: Builds your TypeScript to a single JavaScript distribution.npm run compile
: Lints, tests, and builds your JavaScript distribution.
- Do we need a
threaded-sqlite-read
? (Probably)- We need a way to query the consolidated databases
threaded-sqlite-write
needs to be able to access it'sdist/insert.js
without having to bring it to the project'sdist
threaded-sqlite-write
errors need to be surfaced better than{ code: 'SQLITE_ERROR' }