OneStop is a data discovery system being built by CIRES researchers on a grant from the NOAA National Centers for Environmental Information. We welcome contributions from the community!
This project is maintained by cedardevs
Estimated Reading Time: 5 minutes
--list-differentThis guide focuses on running the OneStop browser web-client via Node for local development. To run the search API (used by the client) and other components, refer to the more expansive Developer Guide.
cd clientnpm install
./node_modulesnpm run dev (search API on port 8097)npm run kub (search API on port 30097) Run the client with webpack instead of using the client that gets deployed with jib.webpack-dev-server hosting a hot-reload version of the clientPrettier is a code formatter . We actually use prettier-miscellaneous which is a fork allowing for more configuration. In particular, the breakBeforeElse option specified in our .prettierrc.json is not supported by the default prettier package.
Formatting is a manual process, but our CI builds will warn when a commit is not formatted.
Ideally, these should be done before every commit by the developer.
--list-differentnpm run formatCheck
npm run format