2017-01-17 19:20:46 -08:00
|
|
|
# wherehows-web
|
|
|
|
|
|
|
|
This README outlines the details of collaborating on this Ember application.
|
|
|
|
A short introduction of this app could easily go here.
|
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
You will need the following things properly installed on your computer.
|
|
|
|
|
|
|
|
* [Git](https://git-scm.com/)
|
|
|
|
* [Node.js](https://nodejs.org/) (with NPM)
|
|
|
|
* [Ember CLI](https://ember-cli.com/)
|
|
|
|
* [PhantomJS](http://phantomjs.org/)
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
* `git clone <repository-url>` this repository
|
|
|
|
* `cd wherehows-web`
|
|
|
|
* `npm install`
|
|
|
|
|
|
|
|
## Running / Development
|
|
|
|
|
|
|
|
* `ember serve`
|
|
|
|
* Visit your app at [http://localhost:4200](http://localhost:4200).
|
|
|
|
|
|
|
|
### Code Generators
|
|
|
|
|
|
|
|
Make use of the many generators for code, try `ember help generate` for more details
|
|
|
|
|
|
|
|
### Running Tests
|
|
|
|
|
|
|
|
* `ember test`
|
|
|
|
* `ember test --server`
|
|
|
|
|
2019-08-31 20:51:14 -07:00
|
|
|
### Linting
|
|
|
|
|
|
|
|
* `npm run lint:hbs`
|
|
|
|
* `npm run lint:js`
|
|
|
|
* `npm run lint:js -- --fix`
|
|
|
|
|
2017-01-17 19:20:46 -08:00
|
|
|
### Building
|
|
|
|
|
|
|
|
* `ember build` (development)
|
|
|
|
* `ember build --environment production` (production)
|
|
|
|
|
|
|
|
### Deploying
|
|
|
|
|
|
|
|
Specify what it takes to deploy your app.
|
|
|
|
|
|
|
|
## Further Reading / Useful Links
|
|
|
|
|
|
|
|
* [ember.js](http://emberjs.com/)
|
|
|
|
* [ember-cli](https://ember-cli.com/)
|
|
|
|
* Development Browser Extensions
|
|
|
|
* [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
|
|
|
|
* [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)
|
2017-07-28 14:51:50 -07:00
|
|
|
|
|
|
|
## Troubleshooting
|
2018-08-27 16:21:52 -07:00
|
|
|
### git commit SyntaxError on Mac
|
|
|
|
> git commit -m 'foo bar'
|
|
|
|
>> husky - npm run -s precommit
|
|
|
|
>> const path = require('path')
|
|
|
|
>> ^^^^^`
|
2017-07-28 14:51:50 -07:00
|
|
|
>> SyntaxError: Use of const in strict mode.
|
|
|
|
|
|
|
|
```
|
|
|
|
# Re-install npm global packages
|
|
|
|
npm cache clean -f
|
|
|
|
sudo npm install -g n
|
2018-08-27 16:21:52 -07:00
|
|
|
sudo n stable
|
2017-07-28 14:51:50 -07:00
|
|
|
```
|