🐚 Overview and status checks of all Ocean Protocol RPC network connections.
Go to file
Trent McConaghy c83ae10d61
Update README.md
2021-01-05 10:29:17 +01:00
.github Create Dependabot config file 2020-06-04 07:19:44 +00:00
jest migrate to Next.js 2019-12-08 14:19:37 +01:00
public migrate to Next.js 2019-12-08 14:19:37 +01:00
src manual bumping 2020-05-18 09:57:31 +02:00
.eslintrc migrate to Next.js 2019-12-08 14:19:37 +01:00
.gitignore migrate to Next.js 2019-12-08 14:19:37 +01:00
.nowignore add .nowignore 2019-09-16 15:37:58 +02:00
.prettierrc 🐚 initial commit 2019-09-16 14:53:19 +02:00
.travis.yml travis fixes 2019-12-08 16:42:40 +01:00
README.md Update README.md 2021-01-05 10:29:17 +01:00
jest.config.js travis fixes 2019-12-08 16:42:40 +01:00
jest.tsconfig.json migrate to Next.js 2019-12-08 14:19:37 +01:00
next-env.d.ts migrate to Next.js 2019-12-08 14:19:37 +01:00
next.config.js package updates 2020-01-28 11:04:48 +01:00
package-lock.json Bump eslint from 7.1.0 to 7.2.0 2020-06-08 10:32:03 +00:00
package.json Bump eslint from 7.1.0 to 7.2.0 2020-06-08 10:32:03 +00:00
site.config.js migrate to Next.js 2019-12-08 14:19:37 +01:00
tsconfig.json migrate to Next.js 2019-12-08 14:19:37 +01:00

README.md

banner

status

🐚 Overview and status checks of all Ocean Protocol RPC network connections. https://status.oceanprotocol.com

Build Status Maintainability Test Coverage Greenkeeper badge

Status Interface

🦑 Features

  • Fetches and displays information for each of Ocean's remote RPC endpoints via Parity JSON-RPC API responses
    • online/offline status (eth_getBlockByNumber & parity_mode)
    • current block number (eth_getBlockByNumber)
    • response time (custom axios interceptor)
    • connected peers (net_peerCount)
    • gas limit (eth_getBlockByNumber)
    • gas price (eth_gasPrice)
    • parity version (web3_clientVersion)
  • current block number is linked to respective explorer
  • automatically refetches all data every 5 sec.
  • Gets network metadata from @ethereum-navigator/atlas

🏄 Get Started

The app is a React app built with Next.js. To start local development:

git clone git@github.com:oceanprotocol/status.git
cd status

npm install
npm start

Code Style

For linting and auto-formatting you can use from the root of the project:

# lint all js with eslint
npm run lint

# auto format all js & css with prettier, taking all configs into account
npm run format

👩‍🔬 Testing

Test suite is setup with Jest and react-testing-library for unit testing.

To run all linting and unit tests:

npm test

For local development, you can start the test runner in a watch mode.

npm run test:watch

For analyzing the generated JavaScript bundle sizes you can use:

npm run analyze

🛳 Production

To create a production build, run from the root of the project:

npm run build
# serve production build
npm run serve

Outputs to ./public.

⬆️ Deployment

Every branch or Pull Request is automatically deployed by Now with their GitHub integration. A link to a deployment will appear under each Pull Request.

The latest deployment of the master branch is automatically aliased to status.oceanprotocol.com.

Manual Deployment

If needed, app can be deployed manually. Make sure to switch to Ocean Protocol org before deploying:

# first run
now login
now switch

# deploy
now
# switch alias to new deployment
now alias

🎁 Contributing

See the page titled "Ways to Contribute" in the Ocean Protocol documentation.

🏛 License

Copyright ((C)) 2021 Ocean Protocol Foundation Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.