WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

EmberJS Creating and Running Application


Creating Application

Let us make one straightforward application utilizing Ember.js. First make one organizer where you make your applications. For example, in the event that you have made the "emberjs-application" organizer, at that point explore to this envelope as −

$ compact disc ~/emberjs-app

Inside the "emberjs=app" organizer, make another undertaking by utilizing the new direction −

$ coal new demo-app

When you make a venture, new order furnishes the accompanying catalog structure with documents and registries −

|- - application 

|- - bower_components 

|- - config 

|- - dist 

|- - node_modules 

|- - open 

|- - tests 

|- - tmp 

|- - merchant 

bower.json 

coal cli-build.js 

package.json 

README.md 

testem.js 

  • app − It indicates the organizers and records of models, courses, parts, layouts and styles.

  • bower_components/bower.json − It is utilized for dealing with the segments, for example, HTML, CSS, JavaScript, picture records and so on and can be introduced by utilizing the npm. The bower_components catalog contains all the Bower parts and bower.json contains the rundown of conditions which are introduced by Ember, Ember CLI Shims and QUnit.

  • config − It contains the environment.js catalog which is utilized for arranging the settings of an application.

  • dist − It incorporates the yield records which are sent when assembling the app.

  • node_modules/package.json − NPM is a hub bundle director for Node.js which is utilized for introducing, sharing and dealing with the conditions in the undertakings. The package.json record incorporates the current npm conditions of an application and the recorded bundles get introduced in the node_modules directory.

  • public − It incorporates resources like pictures, text styles, etc.

  • vendor − It is a catalog in which the front-end conditions, for example, JavaScript, CSS are not constrained by Bower go.

  • tests/testem.js − The mechanized tests are put away under the tests organizer and the test sprinter testem of Ember CLI's is orchestrated in testem.js.

  • tmp − It contains the brief records of Ember CLI.

  • ember-cli-build.js − It indicates how to assemble the application by utilizing the Ember CLI.

Running Application

To run the application, explore to the recently made venture registry −

$ album demo-app

We have made the new task and it is prepared to keep running with the order given beneath −

$ ash server

Now open the program and explore to http://localhost:4200/- - >http://localhost:4200/. You will get the Ember Welcome page as appeared in the picture underneath −