https://github.com/perlin-network/lens
The official network explorer for Wavelet.
https://github.com/perlin-network/lens
blockchain dapp mobx p2p react smart-contracts typescript wavelet
Last synced: 4 months ago
JSON representation
The official network explorer for Wavelet.
- Host: GitHub
- URL: https://github.com/perlin-network/lens
- Owner: perlin-network
- Created: 2018-08-28T18:54:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T03:16:09.000Z (over 3 years ago)
- Last Synced: 2025-03-21T23:51:18.469Z (about 1 year ago)
- Topics: blockchain, dapp, mobx, p2p, react, smart-contracts, typescript, wavelet
- Language: TypeScript
- Homepage:
- Size: 11.1 MB
- Stars: 28
- Watchers: 11
- Forks: 3
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lens
A TypeScript/React/MobX web interface to a Perlin node's API.
By default, Lens connects to a node whose HTTP API is hosted on port 9000 locally (location.hostname + ":9000"). Should you wish to change the HTTP API endpoint which Lens will connect to, you may change it at `src/Perlin.tsx`.
The module `src/Perlin.tsx` additionally holds a MobX API interface in TypeScript that you may use in building misc. web/backend applications which interact with a Wavelet node.
## Setup
```bash
npm install -g yarn
# install dependencies
yarn
# run debug web server
yarn start
```
## Production
```bash
yarn build
$(cd build; python3 -m http.server)
# browser visit localhost:8000
```
### Docker Build
If you want to build the website without installing the tools locally, use the CI build script:
```bash
bash scripts/build.prod.sh
$(cd build; python3 -m http.server)
# browser visit localhost:8000
```
## Common errors
```bash
# if you see an error:
Error: ENOSPC: no space left on device,
# then run
npm dedupe
```