The Decentralized Audius.co Client
🎧🎸🎹🤘🎶🥁🎷🎻🎤🔊
There are 2 environments you can develop against
- prod (main net) — the default
- dev (local net, see the Audius Protocol)
npm run start # Against production (default)
npm run start:local # Against local servicesWhen running against a dev environment on a remote machine, enable a network proxy:
networksetup -setautoproxyurl "Wi-Fi" "http://$AUDIUS_REMOTE_DEV_HOST:8080/proxy.pac"# Bundles static assets into ./build-<environment>, where <environment> is dev or prod
npm run build:dev
npm run build:prodTo run electron using a static build:
npm run build:prod
npm run electron:prod
# Or to point at a local service with an optional port specifier
npm run electron:localhost # -- <port>To build a desktop binary using a static build (outputs to ./dist):
npm run build:prod
# Build all the binaries!!
npm run dist
npm run dist:mac
npm run dist:win
npm run dist:linuxnpm run test
npm run analyzeBundle
npm run lint # Show lint errors
npm run lint:fix # Fix lint errorsAudius DApp supports Web Workers by default to perform heavyweight async tasks. In order to include a package dependency for a worker, a scripts exists:
./scripts/publishScripts.sh
that sources JS files from /node_modules and exports a copy to /public/scripts for the worker to pull via ImportScripts. See /src/workers for examples.
