Simple app used to demonstrate how to use Ember
Webinar for this : YouTube link
To use pods in your project:
-
Enable pods in
enviroment.js
by puttingpodModulePrefix: '<app-name>/pods'
, like here -
Create a
pods
folder manually in yourapp
folder ,like here -
Install
ember-component-css
addon from terminal by running:ember install ember-component-css
-
Include in
app.css
, line@import 'pod-styles.css';
here -
Now, for EVERY component you generate, add the
--pod
flag:ember g component <comp-name> --pod
Sidenote: There is a way where the pod becomes default by putting in a config file, but not mentioned at the demo
You will need the following things properly installed on your computer.
- Git
- Node.js (with NPM)
- Ember CLI
- Google Chrome
git clone <repository-url>
this repositorycd sample-app
npm install
ember serve
- Visit your app at http://localhost:4200.
- Visit your tests at http://localhost:4200/tests.
Make use of the many generators for code, try ember help generate
for more details
ember test
ember test --server
ember build
(development)ember build --environment production
(production)
Specify what it takes to deploy your app.