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-weatherFinally, perform the following inside of your Node project:
echo 'GDELT_PATH=data' >> .env
echo 'GDELT_SQLITE_PATH=data/sqlite' >> .env
./update.shTo keep your news archive in sync, run the following command periodically:
./update.shnpm 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-writeneeds to be able to access it'sdist/insert.jswithout having to bring it to the project'sdistthreaded-sqlite-writeerrors need to be surfaced better than{ code: 'SQLITE_ERROR' }