Once you've installed Ember CLI
via npm
, you will have access to a new ember
command in your terminal. You can use the ember new
command to create a new application.
ember new ember-quickstart --lang en
This one command will create a new directory called
ember-quickstart
and set up a new Ember application inside of it. The
--lang en
option sets the app's primary language to English to help
improve accessibility. Out of the box, your application will include:
* A development server.
* Template compilation.
* JavaScript and CSS minification.
* Modern features via Babel.
By providing everything you need to build production-ready web applications in an integrated package, Ember makes starting new projects a breeze.
Let's make sure everything is working properly. cd
into the application directory ember-quickstart
and start the development server by typing:
cd ember-quickstart
ember serve
After a few seconds, you should see output that looks like this:
Livereload server on http://localhost:7020
Serving on http://localhost:4200/
(To stop the server at any time, type Ctrl-C
in your terminal.)
Open http://localhost:4200
in your browser of choice. You should see an Ember welcome page.