You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The app will use HTTP API via ipfs-http-client provided by locally running IPFS node with correct CORS headers set up, and fallback to using js-ipfs otherwise.
With node > 10 (but < 12) and npm @ 6+ installed, run
npminstall
Usage
When developing you can run the dev server, the unit tests, and the storybook component viewer and see the results of your changes as you save files.
In separate shells run the following:
# Run the unit tests
npm test
# Run the dev server @ https://localhost:3000
npm start
# Run the UI component viewer @ https://localhost:9009
npm run storybook
Build
To create an optimized static build of the app, output to the build directory:
# Build out the html, css & jss to ./build
npm run build
Analyze
To inspect the built bundle for bundled modules and their size, first build the app then:
# Run bundle
npm run analyze
Test
The following command will run the app tests, watch source files and re-run the tests when changes are made:
npm test
The uses Jest to run the isolated unit tests. Unit test files are located next to the component they test and have the same file name, but with the extension .test.js
Linting
The following command will perform standard linting on the code:
npm run lint
Coverage
To do a single run of the tests and generate a coverage report, run the following:
npm run test:coverage
Translations
The translations are stored on ./public/locales and the English version is the source of truth. We use Transifex to help us translate WebUI to another languages.
If you're interested in contributing a translation, go to our page on Transifex, create an account, pick a language and start translating.