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 develop
visit app at http://localhost:4200, a
mock (ember-cli-Mirage) server will be running.
yarn start
Visit app at http://localhost:4200,
requires Ai backend API server to be running.
To run with service workers, without live reload:
ember serve --live-reload=false
and add ?dev=true
to the URL.
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/auth/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.
ember test
ember test --server
ember build
(development)ember build --environment production
(production)
A product of 青 心 工 機 Co., Ltd