Ember app powering the frontend of mirai.audio
You will need the following things properly installed on your computer.
macOS / OS X Installation:
brew install watchman
brew install yarn # add --without-node flag if you use nvm
yarn global add ember-cliLinux (Ubuntu)
npm install -g yarn
yarn global add ember-cli # Make sure $(yarn global bin) is in your $PATHgit clone <repository-url>
cd mir
yarnyarn startVisit app at http://localhost:4200, requires Ai backend API server to be running.yarn start:miragevisit app at http://localhost:4200, a mock (ember-cli-Mirage) server will be running.yarn start:debugrun node in debug mode for debugging fastboot.- To run with service workers, without live reload:
ember serve --live-reload=falseand add?dev=trueto the URL.
yarn testwith code coverage reportingember test --server
yarn lint: show all linting warnings & errors.yarn lint:js: show Javascript linting warnings & errors.yarn lint:js:fix: autofix Javascript linting errors (where possible).yarn lint:scss: show SCSS linting warnings & errors.yarn lint:hbs: show template (.hbs) linting warnings & errors.
ember build(development)ember build --environment production(production)
Environment variables
The following environment variables are available to override fallback (dev) configuration:
# common
API_URL=https://api.mirai.audio # REST API address
HOST=http://localhost:4200 # Default host
MIRAGE=true # Enable Mirage mock server for development
# social login providers
TWITTER_REQUEST_TOKEN_URL=//localhost:4000/login/twitter # ai kickstarts OAuth
# Coveralls API token (how test coverage is reported)
COVERALLS_REPO_TOKEN= # needs to be set in Circle CI / TravisIf these are defined in a .env file, they will be sourced and made available
in the running application.
A product of 青 心 工 機 Co., Ltd