https://github.com/starcoinorg/starcoin-explorer
Starcoin Blockchain Explorer
https://github.com/starcoinorg/starcoin-explorer
blockchain blockchain-explorer diem starcoin
Last synced: about 2 months ago
JSON representation
Starcoin Blockchain Explorer
- Host: GitHub
- URL: https://github.com/starcoinorg/starcoin-explorer
- Owner: starcoinorg
- License: apache-2.0
- Created: 2021-01-25T03:48:56.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-30T06:34:21.000Z (9 months ago)
- Last Synced: 2025-03-11T08:05:41.503Z (3 months ago)
- Topics: blockchain, blockchain-explorer, diem, starcoin
- Language: TypeScript
- Homepage: https://stcscan.io
- Size: 2.66 MB
- Stars: 13
- Watchers: 16
- Forks: 24
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Version dependency in development
`$node -v`\
v10.12.0`$npm -v`\
6.4.1`$tsc -v`\
Version 4.1.3`$yarn -v`\
1.22.10`$npx -v`\
6.4.1`$npx create-react-app starcoin-explorer --template typescript`
## Set Environment Variables
```
export REACT_APP_STARCOIN_API_URL=
export REACT_APP_STARCOIN_NETWORKS=
```
## Set Environment Variables On develop use Main APi
for unix shell
```shell
export REACT_APP_STARCOIN_API_URL=https://api.stcscan.io
export REACT_APP_STARCOIN_NETWORKS=main
```
for powershell
```powershell
$env:REACT_APP_STARCOIN_API_URL='https://api.stcscan.io'
$env:REACT_APP_STARCOIN_NETWORKS='main'
```## How to run
> check for updates first if needed
>
>`$git clone [email protected]:starcoinorg/starcoin-explorer.git`\
>`$cd starcoin-explorer`\
>`rm package-lock.json`\
>`$yarn``$yarn start`
Runs the app in the development mode.\
Open [http://localhost:3007](http://localhost:3007) to view it in the browser.The page will reload if you make edits.\
You will also see any lint errors in the console.## How to test
`$yarn test`
Launches the test runner in the interactive watch mode.
## How to deploy
`$yarn build`
Builds the app for production to the `build` folder.
Your app is ready to be deployed!
>You may serve it locally with a static server for test before deploying.
>
> `npm install -g serve`\
> `serve -s build`
>
>then visit: [http://localhost:5000](http://localhost:5000)## How to CI/CD
```
$git tag vx.y.z
$git push --tag
```A github action will be triggered and deploy the newest version of `build` folder to [this repo](https://github.com/starcoin-explorer/starcoin-explorer.github.io).