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-cli
Linux (Ubuntu)
npm install -g yarn
yarn global add ember-cli # Make sure $(yarn global bin) is in your $PATH
git clone <repository-url>
cd mir
yarn
yarn start
Visit app at http://localhost:4200, requires Ai backend API server to be running.yarn start:mirage
visit app at http://localhost:4200, a mock (ember-cli-Mirage) server will be running.yarn start:debug
run node in debug mode for debugging fastboot.- To run with service workers, without live reload:
ember serve --live-reload=false
and add?dev=true
to the URL.
yarn test
with 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 / Travis
If these are defined in a .env
file, they will be sourced and made available
in the running application.
A product of 青 心 工 機 Co., Ltd