You will need the following things properly installed on your computer.
- Git
- Node.js (with NPM)
- Bower
- Ember CLI
- Google Chrome
git clone [email protected]:CS450-ECE461/fall2017-team1-web.git
cd fall2017-team1-web
bower install
npm install
Linux systems may have trouble completing npm install because of permissions issues. The current workaround is to use the command:
sudo chown -R $(whoami) [path/to]/fall2017-team1-web/node_modules
ember serve
- Visit your app at http://localhost:4200.
- Visit your tests at http://localhost:4200/tests.
There are multiple different test commands you can invoke that will run different levels of tests
-
ember test
- Runs all style guides as well as Unit, Integration, and Acceptance Tests and outputs results to the command line -
ember test --server
- Runs all style guides as well as Unit, Integration, and Acceptance Tests and outputs the results to a webpage -
npm run pre-push-test
- This script runs only style guides and units tests. Runs automatically whenever you attempt to push to github -
npm run test-with-coverage
- Runsember test
with the code coverage option turned on. Outputs the code coverage results to thecoverage/
folder in HTML format -
npm run test-ci
- Runs the tests in random order (good for catching poorly written test cases). Automatically run by Travis-CI on every pull request
- ember.js - Framework docs
- ember-cli - CLI docs
- ember observer - List of open source Ember plugins
- ember inspector for chrome - Provides some extra debugging help
We will use the same guidelines as the backend team
To help maintain consistent code and promote best practices we are using the following plugins/libraries
- eslint - General javascript best practices
- eslint-plugin-ember-suave - Ember specific js rules
- ember-cli-template-lint - For best practices in handlebars (.hbs) files