raymondjacobson / audius-client

The Decentralized Audius.co Client

Home Page:https://audius.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


audius-client

The Decentralized Audius.co Client
🎧🎸🎹🀘🎢πŸ₯πŸŽ·πŸŽ»πŸŽ€πŸ”Š



CircleCI code style: prettier JavaScript Style Guide

Development

There are 3 environments you can develop against

  • development (local net, see the Audius Protocol)
  • staging (test net)
  • production (main net)

Running

npm install
npm run start:<environment>

Building

# Bundles static assets into ./build-<environment>
npm run build:<environment>

Electron (Desktop App)

To run electron using a static build:

npm run build:<environment>
npm run electron:<environment>
# Or to point at a local service
npm run electron:localhost

To build a desktop binary using a static build (outputs to ./dist):

npm run build:<environment>

# Build all the binaries!!
npm run dist

npm run dist:mac
npm run dist:win
npm run dist:linux

Testing

Jest

npm run test

Linting

StandardJS & Prettier

npm run lint  # Show lint errors
npm run lint-fix  # Fix lint errors

Web Workers

Audius 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.

Useful links

About

The Decentralized Audius.co Client

https://audius.co

License:Other


Languages

Language:TypeScript 53.1%Language:JavaScript 31.6%Language:CSS 14.8%Language:HTML 0.3%Language:GLSL 0.2%Language:Shell 0.0%