Open In App

Ember.js Introduction

Ember.js is an open-source JavaScript framework used for developing large client-side web applications which is based on Model-View-Controller (MVC) architecture. Ember is designed for reducing development time and increasing productivity, it is one of the fastest-growing front-end application frameworks being adopted worldwide. It is currently used on many websites such as Square, Discourse, Groupon, Linked In, Live Nation, Twitch, and Chipotle.

Although considered as a framework for websites, Ember can also be used to develop desktop and mobile applications. If you want to build a single-page web application, Ember.js is the right choice for you. The most notable example of an Ember desktop application is Apple Music.



What is a client-side framework?

The client-side framework is usually a JavaScript library that enables the enhancement and manipulation of web pages and client browsers, such as React, Angular, Vue, Ember, and Backbone.



What is MVC?

MVC is a software design pattern comprised of three interconnected parts. They include the model (data), the view (user interface), and the controller (processes that handle input) used for developing user interfaces.

Why Ember.js?

How to install Ember.js?

Ember CLI (command line interface) is built with JavaScript and expects the Node.js runtime. So, if your computer has Node.js installed you are ready to go. In case you want to install click here and check the version for confirmation:

node -v
npm -v

You can install Ember with a single command using npm, the Node.js package manager. Type this into your terminal:

npm install -g ember-cli

How to create a project?

Step 1: To create a new project using Ember CLI, use the “new” command in the command prompt. Let’s consider the name of our project “ember_project”. After creating a new project change your directory. 

ember new ember_project
cd ember_project

Step 2: Now we need to make changes in app/templates/application.hbs file (remove the {{welcome-page}} component) using any code editor:




<div class="intro">
      <h1>Welcome to GeekforGeeks!</h1>
        
<p>Ember.js is fun!</p>
  
</div>

Step 3: And then we can start the ember development server by entering this code in the command prompt:

ember serve

Step 4: After the above query is executed successfully you can check your progress on http://localhost:4200/.

Output:

Reference: guides.emberjs.com

Advantages:  

Disadvantages:  

Article Tags :