EmberJS Creating and Running 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.
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.
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.
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 −