Skip to content

spacemeshos/smesher-app

Repository files navigation

Smesher Monitor App

Getting started

  1. Install dependencies.

    yarn
  2. Serve with hot reload at http://localhost:5173.

    yarn dev
  3. If you want to connect to the local node you may need to run cors middleware:

yarn cors

Later you can connect to your node using URL:

http://localhost:8080/0.0.0.0:9071

Lint commands

  • Run eslint
    yarn lint
  • Run eslint with fixing
    yarn lint:fix

Build commands

yarn build

Test commands

  • Run tests with coverage (will open the coverage if all tests succeed)
    yarn test
  • Watch tests
    yarn test:watch

Commit commands

This project use commitlint to ensure that commit messages are conventional-changelog compliants.

To help you build more efficient commit messages, you can use the commitizen package by running this command :

yarn cz

Development

Environment variables

For better developer experience there are some ENV variables that is available ONLY for dev mode (yarn dev) and won't be used in the built code due to the security reasons.

  • APP_VERSION — SemVer of Smesher App to be used instead of one in package.json
  • VERSIONS_JSON_URL — full URL to the file that maps minimal Smesher Service Version to the latest Smesher App Version
  • OFFICIAL_HOSTED_URL — the first segment of URL (protocol and hostname), will be used for proposal to switch to another hosted version

About

The web app for smesher service monitoring

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •