dyno-web-ui

Test Suite Badge

Instructions

  • Open dyno-web-ui.code-workspace in VSCode
  • Run npm install
  • (optional) Run node ./node_modules/.bin/sentry-cli login
    • Docs
    • Useful for production debugging or sending test events
  • Run doppler setup and choose the correct project from the list.
  • Run npm run dev to start the development server

The website will be available at http://localhost:3000 in development by default.

Note: If port 3000 is in use, it will increment until an open port is found. The url will be printed in the console after the initial startup.

Dyno API Client

The client is made available via React Context in ApiProvider.

To use the API in a component, the pattern is to first create a data hook to proxy the API calls. Follow useModules as an example; useSWR should be used. Once the data hook has been created, access your data with it from your component, calling any methods from there.