Skip to content

Clinical-Genomics/statina-ui

Repository files navigation

Statina ui - Frontend for https://statina.scilifelab.se/

Staging frontend app: https://statina-stage.web.app/

About

This app is built with Create React App

Before running the app you need to install:

Available Scripts

Once cloned the repo, install dependencies with:

yarn install

To run the app three environment variables are needed:

  • REACT_APP_BACKEND_URL URL of the api endpoints for Statina.

To run:

REACT_APP_BACKEND_URL="the-backend-url-here" yarn start

example: REACT_APP_BACKEND_URL="localhost:28003" yarn start

Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn coverage

run tests with coverage

yarn lint

will display linting issues.

yarn lint --fix

will fix the errors.

npx stylelint "**/*.css"

will display style lint issues.

npx stylelint "**/*.css" --fix

will fix the errors.

REACT_APP_BACKEND_URL="the-backend-url-here" yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

The app is deployed to a preview channel at every pull request and at every merge to master to staging and production

Releases

No releases published

Packages

No packages published

Languages