Note: If you already cloned down the repo, start fresh in a new project folder.
The goal of this task is to install ember-cli onto your machine, so you can run the ember
command in your terminal.
Ember-CLI is the official Ember.js build tool. It handles things like
- Running a development web server
- Running tests
- Code generation
- Compiling static assets
You can install ember-cli globally by running
npm install -g ember-cli
Now you should be able to run
ember --version
and see something like
# You may see different version numbers when you run the command. This is fine!
ember-cli: 3.10.0
node: 11.6.0
os: darwin x64
The goal of this task is to create a new ember app (roughly equivalent to the starting point of this course), using the official Ember Octane blueprint.
We can create a new app by running
ember new <app-name>
The suggested app name is Shlack.
This will create a project based on the default Ember.js app blueprint.
If we want to create an Ember Octane app, we can use the official Ember Octane blueprint instead
ember new -b @ember/octane-app-blueprint <app-name>
The goal of this task is to install the dependencies listed in your package.json.
While in the project directory, run
npm install
or if using yarn
yarn install
The goal of this task is to serve your ember app using Ember CLI, and to view it in a browser.
While in the project directory, run
ember serve
You should see some indication that the app is running on localhost (:4200
by default, but customizable via --port <port-number>
)
Build successful (2158ms) – Serving on http://localhost:4200/
Once you visit https://localhost:4200, you will see a congratulations 🐹message if the app is correctly spun up.