The network console works alongside the network observer. Follow the steps outlined in the network observer setup guide to configure a valid route.
We use yarn
as the package manager, if adding dependencies to package.json
make sure you install them with yarn
and commit the yarn.lock
file.
To get started quickly, follow the steps below:
- Install the required dependencies by running
yarn install
. - Start the application by running
yarn start
. - Open http://localhost:3000 in your web browser.
OBSERVER_URL=<network observer console url route> yarn start
To run unit tests, use the following command:
yarn test
To run local integration tests, use the following command:
yarn cy
To run the e2e tests, you'll need to configure the following environment variables:
CYPRESS_BASE_URL
: This variable is used to specify the base URL of the application under test.CYPRESS_USERNAME
andCYPRESS_PASSWORD
: If your application requires Basic Authentication.
OBSERVER_URL
: The console uses a real network observer.API_VERSION
: Part of the url api. Note: Do not include a leading slash (/) in the value of API_VERSION.BRAND_APP_LOGO
: Customize the logo for the build.BRAND_FAVICON
: Customize the favicon for the build.USE_MOCK_SERVER
: Use predefined static data to display the console.MOCK_RESPONSE_DELAY
: It simulates a delay (milliseconds) in the response when using the mock server.MOCK_ITEM_COUNT
: It generates X random resources (processes, sites, links, etc.)