cam-api-portal

Api for data collected to run programs designed to reduce air pollution from power plants

https://github.com/USEPA/cam-api-portal

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.8%) to scientific vocabulary

Keywords

oar
Last synced: 10 months ago · JSON representation

Repository

Api for data collected to run programs designed to reduce air pollution from power plants

Basic Info
  • Host: GitHub
  • Owner: USEPA
  • License: mit
  • Language: JavaScript
  • Default Branch: main
  • Homepage:
  • Size: 5.69 MB
Statistics
  • Stars: 5
  • Watchers: 3
  • Forks: 5
  • Open Issues: 41
  • Releases: 3
Topics
oar
Created almost 5 years ago · Last pushed 12 months ago
Metadata Files
Readme Contributing License Code of conduct

README.md

Clean Air Markets API Portal

The Clean Air Markets (CAM) API Portal is the documentation site for a suite of API's that EPA's Clean Air and Power Division (CAPD) provides to access the data collected to run programs designed to reduce air pollution from power plants. These APIs are also used by the Clean Air Markets Programd Data (CAMPD) site and the new version of the Emission Collection and Monitoring Plan System (ECMPS).

npm login

This project uses npm to install packages, start and testing the app, etc. Project contributors will need to use a personal access token (PAT) to authenticate to GitHub Packages. The PAT scopes should include repo and read:packages. You can authentiate to GitHub Packages by either logging into npm via the CLI or editing your ~/.npmrc file, see the GitHub Guidance here.

After configuring your npm login, users may continue experiencing issues using npm and should run npm clean cache -f to clean the npm cache.

Required environment variables

  • $REACT_APP_API_UMBRELLA_KEY_CREATOR={cam_api_portal API key for API key signup form found in api gateway}

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.\ Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.\ You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.\ See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.\ It correctly bundles React in production mode and optimizes the build for the best performance.

Production build steps

  1. Merge any updates and re-run npm install
  2. Test locally with npm run start
    • API docs
    • API key signup form
    • Contact us form
    • Any new links or content
    • Run unit tests
  3. Run npm run build
  4. Copy all css artifacts into clipboard using cat build/static/css/*.css > /dev/clipboard or cat build/static/css/*.css | clip (on Windows)
  5. Paste copied css artifacts (e.g., for the react-swagger pages and any custom css) into "Page Javascript" section in drupal within a <style> tag
  6. Copy all javascript artifacts into clipboard using cat build/static/js/*.js > /dev/clipboard or cat build/static/js/*.js | clip (in Windows)
  7. Paste copied javascript artifacts into "Page Javascript" section in drupal within a <script> tag
  8. Tag new version and create release within github including the complete html drupal artifact
  9. Update any cam-api-example scripts with new changes and merge into master

License & Contributing

​ This project is licensed under the MIT License. We encourage you to read this project’s License, Contributing Guidelines, and Code of Conduct.

Disclaimer

The United States Environmental Protection Agency (EPA) GitHub project code is provided on an "as is" basis and the user assumes responsibility for its use. EPA has relinquished control of the information and no longer has responsibility to protect the integrity, confidentiality, or availability of the information. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by EPA. The EPA seal and logo shall not be used in any manner to imply endorsement of any commercial product or activity by EPA or the United States Government.

Owner

  • Name: U.S. Environmental Protection Agency
  • Login: USEPA
  • Kind: organization
  • Location: United States of America

GitHub Events

Total
  • Push event: 1
  • Pull request event: 1
  • Fork event: 2
  • Create event: 1
Last Year
  • Push event: 1
  • Pull request event: 1
  • Fork event: 2
  • Create event: 1

Committers

Last synced: 10 months ago

All Time
  • Total Commits: 130
  • Total Committers: 12
  • Avg Commits per committer: 10.833
  • Development Distribution Score (DDS): 0.846
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
mibarra i****e@e****v 20
dependabot[bot] 4****]@u****m 19
Johnathan Tafoya t****n@e****v 16
Mike Heese h****l@e****v 16
Johnathan Tafoya 6****a@u****m 15
kstetsyuk s****a@e****v 11
sgillEPA 8****A@u****m 10
kstetsyuk 7****k@u****m 8
Theresa Nguyen n****a@e****v 7
TNGUYE02 T****2@L****2 5
sgillEPA g****p@e****v 2
NickNguyenEPA 1****A@u****m 1
Committer Domains (Top 20 + Academic)
epa.gov: 6

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 54
  • Total pull requests: 67
  • Average time to close issues: 2 months
  • Average time to close pull requests: about 2 months
  • Total issue authors: 6
  • Total pull request authors: 7
  • Average comments per issue: 0.59
  • Average comments per pull request: 0.48
  • Merged pull requests: 51
  • Bot issues: 6
  • Bot pull requests: 24
Past Year
  • Issues: 0
  • Pull requests: 3
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 3
Top Authors
Issue Authors
  • j-tafoya (39)
  • github-actions[bot] (5)
  • ibarra-michelle (2)
  • ntknguyen (2)
  • maheese (2)
  • sgillEPA (2)
Pull Request Authors
  • dependabot[bot] (38)
  • j-tafoya (12)
  • sgillEPA (12)
  • kstetsyuk (9)
  • ibarra-michelle (6)
  • ntknguyen (5)
  • NickNguyenEPA (3)
Top Labels
Issue Labels
resources subpage (3) API docs subpage (2) all pages (1)
Pull Request Labels
dependencies (38)

Dependencies

package-lock.json npm
  • 1602 dependencies
package.json npm
  • husky ^7.0.4 development
  • jest-axe ^5.0.1 development
  • lint-staged ^12.1.5 development
  • prettier ^2.5.1 development
  • @testing-library/jest-dom ^5.14.1
  • @testing-library/react ^11.2.7
  • @testing-library/user-event ^12.8.3
  • @trussworks/react-uswds ^2.7.0
  • @us-epa-camd/easey-design-system ^1.27.0
  • react ^17.0.2
  • react-dom ^17.0.2
  • react-router-dom ^6.2.1
  • react-scripts 4.0.3
  • swagger-ui-react ^4.10.3
  • uswds ^2.11.2
  • web-vitals ^1.1.2
.github/workflows/codeql-analysis.yml actions
  • actions/checkout v2 composite
  • github/codeql-action/analyze v1 composite
  • github/codeql-action/autobuild v1 composite
  • github/codeql-action/init v1 composite
.github/workflows/develop-branch.yml actions
  • actions/checkout v2 composite
  • actions/setup-node v1 composite
  • zaproxy/action-baseline v0.3.0 composite
docker-compose.yml docker