kunatastic / dashboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bench Routes Dashboard

Bench routes dashboard is a user interface to access, visualize and introspect data curated by bench-routes. This files explains how to setup and work with Bench Routes Dashboard.

Introduction

Bench Routes Dashboard was bootstrapped using Create React App, a popular toolkit for generating React application setups. You can find general information about Create React App on their documentation site.

Instead of plain JavaScript, we use TypeScript to ensure typed code.

Development environment

To work with the React UI code, you will need to have the following tools installed:

Cloning the repository

You can clone this repository by running:

git clone https://github.com/bench-routes/dashboard.git

Setting up Bench Routes backend

Make sure to setup Bench Routes repository on your local machine before using the dashboard. You can find the instructions of setting up the backend here.

Installing npm dependencies

To get started with the project, you will need to install some dependencies via the yarn package manager as follows:

    yarn

Yarn consults the package.json and yarn.lock files for dependencies to install. It creates a node_modules directory with all installed dependencies.

NOTE: Remember to change directory to dashboard before running this command and the following commands.

Running a local development server

You can start a development server for the Dashboard by running:

    yarn start

This will open a browser window with the React app running on http://localhost:3000/ in "watch" mode i.e. the web server will reload if you make edits to the source code and you will also see any linting errors in the console.

Running tests

Create React App uses the Jest framework for running tests. To run unit tests in interactive watch mode:

    yarn test

To run E2E tests in interactive watch mode:

    yarn test:e2e

Linting

We define linting rules for the ESLint linter. We recommend integrating automated linting and fixing into your editor (e.g. upon save), but you can also run the linter separately from the command-line.

To detect and automatically fix lint errors, run:

    yarn lint

About


Languages

Language:TypeScript 93.6%Language:JavaScript 3.4%Language:HTML 2.8%Language:Shell 0.1%