Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.
/ code-gov-harvester Public archive

Stand alone metadata harvester for Code.gov

License

Notifications You must be signed in to change notification settings

GSA/code-gov-harvester

Repository files navigation

Code.gov Harvester

CircleCI Maintainability Test Coverage

This is still a work in progress

This project fetches and processes code.json files and indexes them in Elasticsearch. This is ment to be the main harvester for Code.gov and the Code.gov API.

How to use this project

Installing

Please install the following dependencies before running this project:

  • Node.js
  • Elasticsearch

Once node is installed, install the local npm dependencies

cd code-gov-harvester && npm install

Dependencies

Development Dependencies

Running

Environment Variables

Before running any of the commands included in the package.json file there are some environment variables that need to be set:

  • NODE_ENV: The node environment the project is running under. Valid environments are:
    • production or prod
    • staging or stag
    • development or dev

Metadata Files

Configuring

Scripts

Elasticsearch

Docker

To be added soon.

Contributing

Here’s how you can help contribute to code.gov:

Generating License Data

To update the dependency_licenses.json file, run npm run licenses.

License

As stated in CONTRIBUTING:

[..] this project is in the worldwide public domain (in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication).

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.