Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/optimism-java/dispute-explorer-frontend
The frontend application of dispute-explorer
https://github.com/optimism-java/dispute-explorer-frontend
Last synced: 10 days ago
JSON representation
The frontend application of dispute-explorer
- Host: GitHub
- URL: https://github.com/optimism-java/dispute-explorer-frontend
- Owner: optimism-java
- Created: 2024-06-13T09:16:50.000Z (5 months ago)
- Default Branch: development
- Last Pushed: 2024-09-14T11:58:47.000Z (2 months ago)
- Last Synced: 2024-09-15T12:58:17.140Z (2 months ago)
- Language: TypeScript
- Size: 1.14 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Getting Started
you should run the [backend service](https://optimism-java.github.io/superproof-docs/deployment/use_docker) first
### Run with source code
1. install deps:
```bash
pnpm install
```2. config the dev environment
```bash
cp .env.example .env.local
```there are four envs in `.env.example` file
```
NEXT_PUBLIC_API_KEY=
NEXT_PUBLIC_OP_MAINNET_URL=
NEXT_PUBLIC_OP_SEPOLIA_URL=
NEXT_PUBLIC_BASE_SEPOLIA_URL=
````NEXT_PUBLIC_API_KEY` is the `meiliSearch` service token, know
more about the [token](https://optimism-java.github.io/superproof-docs/deployment/use_docker)The next three envs deponds on the network, only one env should be set. if frontend host on `http://localhost:300`
and backend service is about `mainnet`, `NEXT_PUBLIC_OP_MAINNET_URL` be set to `http://localhost:300`.
if is `sepolia` network, so `NEXT_PUBLIC_OP_SEPOLIA_URL` should be set, and as `base_sepolia` network3. change the proxy
change the `destination` to real backend in `rewrites()` method in `next.config.mjs` file
```bash
pnpm run dev
```### Run with docker
first pull the image
```bash
docker pull ghcr.io/optimism-java/dispute-explorer-frontend:development```
copy `nginx.conf` and change config
```bash
cp nginx.conf.example nginx.conf
```replace with the real `proxy_pass` and auth token