Code Monkey home page Code Monkey logo

doi-extractives-data's Introduction

CircleCI

U.S. Department of the Interior Natural Resource Revenue Data

This is the repository for active development work on revenuedata.doi.gov. See releases for information about the current version of the site.

For more detailed process, development, and data information, please see our repository's wiki.

What

The U.S. earns revenue on natural resources (such as oil, gas, coal and geothermals) extracted from federal lands and waters. This is a major source of revenue for both the federal government, state governments, and local municipalities.

This repository contains the code for revenuedata.doi.gov, which is a website that includes both curated content and raw data to better inform the national and international conversation around extractive industries revenue. It will provide data visualizations and information that’s understandable to members of the public and can be re-used through other media and applications.

For more information about the history of the site, see about this site.

Contributing

Content and feature suggestions are welcome via GitHub Issues. Code contributions are welcome via pull request, although of course we cannot guarantee your changes will be included in the site. Take a look at the issues we've tagged help wanted!

See CONTRIBUTING for more information about how to pitch in.

Public domain

This project is in the worldwide public domain. As stated in CONTRIBUTING:

This project is 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.

Development Environment

How it works

This project uses the GatsbyJS open source framework. This framework builds static web pages that then are published to our production environment. You can read more about Gatsby on their website.

High Level Overview

Data and content is read into a graphql schema. This graphql schema is then used to create queries to get the data and content needed to create the pages in the site. Pages are generated either by a template or a React component in the pages directory. Once the page is built it is copied to the public directory into the appropriate subdirectory. All javascript, css and data are embedded into the page. At runtime the react components are initialzed and the page is rendered.

Getting Started

Prerequisites:

  • node
  • npm

Once you have cloned the repository run:

npm install

Local dev commands:

  • npm run develop - This will start a local server running on port 8000 by default
  • npm run build - This will create the static html pages that are used in the production environment
  • npm run server - If you have run the local build command this wil start a web server so you can view the static html files on port 9000 by default
  • npm run clean - This wil clean the cache created by the gatsby build process. Use this when you need a refresh the data the site uses.
  • npm run format - This site uses eslint for fomratting and syntax checking
  • npm run test - We current use Jest to create unit tests. This command will run all the tests locally.

doi-extractives-data's People

Contributors

alexpandel avatar brentryanjohnson avatar dhcole avatar dmsnell avatar echang97 avatar el-mapache avatar gboone avatar gemfarmer avatar jamiealbrecht avatar jennmalcolm avatar jeremiak avatar jlouis-onrr avatar laurenancona avatar lpgoldstein avatar master12 avatar mcharg avatar meiqimichelle avatar mentastc avatar mojobnichols avatar shawnbot avatar toolness avatar winzenburg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.