https://github.com/fedspendingtransparency/fiscal-data
Frontend of FiscalData.Treasury.gov
https://github.com/fedspendingtransparency/fiscal-data
Last synced: 4 months ago
JSON representation
Frontend of FiscalData.Treasury.gov
- Host: GitHub
- URL: https://github.com/fedspendingtransparency/fiscal-data
- Owner: fedspendingtransparency
- License: mit
- Created: 2022-03-16T14:22:05.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2026-03-04T22:19:04.000Z (4 months ago)
- Last Synced: 2026-03-04T22:19:26.460Z (4 months ago)
- Language: JavaScript
- Size: 127 MB
- Stars: 23
- Watchers: 1
- Forks: 7
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FDG
UI for `fiscaldata.treasury.gov`
## Style Guide
FDG has a [coding style guide](style-guide.md) that is a work in progress.
## Getting Started
You will need to have Node installed to run this project.
Clone this project using this command:
`git clone https://github.com/fedspendingtransparency/fiscal-data.git`
Install dependencies:
`npm install --legacy-peer-deps`
Start the project on a local server:
`npm run develop-dev`
You can run unit tests with:
`npm run test`
You can run unit tests with _coverage_ via:
`npm run test:coverage`
Update the snapshots used in the unit tests with:
`npm run updateSnapshots`
## Troubleshoot Issues
Sometimes there might be issues when running `npm install`. Here are a few tips for
resolving some of these issues. First run the following command:
`npm config list`
`npm install --verbose`
If the installation hangs for more han 10 minutes, type the following on your keyboard:
`[ctrl] + C` to close out the process. This should either continue running or end the installation.
Then type the following command to clean your cache and re-install:
`npm cache clean --force`
`npm install --verbose`
Sometimes the issue might be that you're missing a binding.node file in your `~//node/` directory.
Check with the dev team about adding the following files to your node folder located in your Windows user directory:
`C:/Users//node/win32-x64-72_binding.node`
`C:/Users//node/win32-x64-83_binding.node`
When you're done adding the files try to run the project locally by typing the following command:
`npm run develop-dev`
To view the app on your browser, go to the local host address
`http://localhost:8000/`
When switching branches that contain new packages run:
`npm install --verbose`
## Gatsby Builds
For builds with silent warnings that are also optimized, you can run the gatsby build and serve the app using:
`gatsby build`
`npm run serve`
To remove gatsby cache files when switching environments
`gatsby clean`
## Environment Builds
To see dev builds go to
`https://dev-fiscaldata.treasury.gov`