This repo contains the source code for the block explorer of the XRP Ledger hosted at livenet.xrpl.org.
This project was bootstrapped with Create React App. You can find the most recent version of guide here.
The project requires node@14. Follow installation instructions on nodejs.org.
This setup is required for the Tokens page of the explorer to function:
- Select or create a Cloud Platform project.
- Enable the Google BigQuery API.
- Set up authentication with a service account
Once you have completed these steps and generated the JSON key file, you must populate the following environment variables in the .env file with their corresponding values from the JSON key file:
GOOGLE_APP_PROJECT_ID=your-project-id
GOOGLE_APP_PRIVATE_KEY=-----BEGIN PRIVATE KEY-----\n...
GOOGLE_APP_CLIENT_EMAIL=your-client-email
npm installthennpm startfor development mode, ornpm run buildthennpm run prod-serverfor production mode
- Replace
RIPPLED_HOST=s2.ripple.comwithRIPPLED_HOST=s.altnet.rippletest.netin the.envfile - Remove
RIPPLED_SECONDARYfrom.env(optional, but the extra validator subscriptions are not necessary) - Add
REACT_APP_ENVIRONMENT=testnetto.envto enable TESTNET banner
- Replace
RIPPLED_HOST=s2.ripple.comwithRIPPLED_HOST=s.devnet.rippletest.netin the.envfile - Remove
RIPPLED_SECONDARYfrom.env(optional, but the extra validator subscriptions are not necessary) - Add
REACT_APP_ENVIRONMENT=devnetto.envto enable TESTNET banner
- Run tests in watch mode
npm test - Run test to produce coverage
npm run test:coverage - To open coverage HTML report in app root do
open coverage/index.html
- Place
debugger;in your unit test - Do
npm run test:debug - Open
about:inspectin Chrome - Click on
inspectlink - Chrome Developer Tools will be open, click
playbutton - Now test will start running and will stop on your
debugger; - You know the rest ;)
- phone-only: 0px - 375px
- tablet-portrait-up: 375px - 600px
- tablet-landscape-up: 600px - 900px
- desktop-up: 900px - 1200px
- big-desktop-up: 1200px and up
- US English (default)
- Simplified Chinese
- Japanese
- Korean
- Mexican Spanish
- Brazilian Portuguese
- Most updated documentation for create-react-app
- Latest news in react blog
- React documentation
- How to think in react and break down components
- More details on packages and step by step tutorial