feat: simplified the steps to run the web app (#79)

This commit is contained in:
Vojtech Simetka
2021-04-23 12:07:58 +02:00
committed by GitHub
parent a0f1d1c50a
commit bea9d5557f
3 changed files with 1280 additions and 8 deletions
+7 -7
View File
@@ -1,6 +1,5 @@
# Bee Status # Bee Dashboard
[![Dependency Status](https://david-dm.org/ethersphere/bee-dashboard.svg?style=flat-square)](https://david-dm.org/ethersphere/bee-dashboard)
[![](https://img.shields.io/badge/made%20by-Swarm-blue.svg?style=flat-square)](https://swarm.ethereum.org/) [![](https://img.shields.io/badge/made%20by-Swarm-blue.svg?style=flat-square)](https://swarm.ethereum.org/)
[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme) [![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
@@ -25,7 +24,7 @@
- [Contribute](#contribute) - [Contribute](#contribute)
- [License](#license) - [License](#license)
## Install ## Install & build
``` ```
git clone git@github.com:ethersphere/bee-dashboard.git git clone git@github.com:ethersphere/bee-dashboard.git
@@ -33,16 +32,17 @@ git clone git@github.com:ethersphere/bee-dashboard.git
cd bee-dashboard cd bee-dashboard
npm ci npm ci
npm run build
``` ```
## Usage ## Serve the Bee Dashboard website
```sh ```sh
npm run build npm run serve
serve -s ./build
``` ```
You can now access Bee Dashboard on [http://localhost:5000/](http://localhost:5000/)
## Contribute ## Contribute
There are some ways you can make this module better: There are some ways you can make this module better:
+1271
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -58,6 +58,7 @@
"eslint-plugin-react": "^7.23.2", "eslint-plugin-react": "^7.23.2",
"prettier": "^2.2.1", "prettier": "^2.2.1",
"react-scripts": "4.0.3", "react-scripts": "4.0.3",
"serve": "^11.3.2",
"typescript": "^4.2.4", "typescript": "^4.2.4",
"web-vitals": "^1.1.1" "web-vitals": "^1.1.1"
}, },
@@ -65,7 +66,7 @@
"start": "react-scripts start", "start": "react-scripts start",
"build": "react-scripts build", "build": "react-scripts build",
"test": "react-scripts test", "test": "react-scripts test",
"eject": "react-scripts eject", "serve": "serve -s ./build",
"lint": "eslint --fix \"src/**/*.ts\" \"src/**/*.tsx\" && prettier --write \"src/**/*.ts\" \"src/**/*.tsx\"", "lint": "eslint --fix \"src/**/*.ts\" \"src/**/*.tsx\" && prettier --write \"src/**/*.ts\" \"src/**/*.tsx\"",
"lint:check": "eslint \"src/**/*.ts\" \"src/**/*.tsx\" && prettier --check \"src/**/*.ts\" \"src/**/*.tsx\"" "lint:check": "eslint \"src/**/*.ts\" \"src/**/*.tsx\" && prettier --check \"src/**/*.ts\" \"src/**/*.tsx\""
}, },