Angular-Seed

https://github.com/angular/angular-seed

1. Ens baixarem el repo angular-seed que ens deixarà un esquelet com ha de ser la nostra aplicació:

git clone --depth=1 https://github.com/angular/angular-seed.git <your-project-name>

(la opció depth no ens crearà logs en el repo).

2. Instal·larem dependencies:

sudo npm install
bower install

3. Engegarem el servidor:

sudo npm start

I ja podem consultar via navegador:

http://localhost:8000/app/index.html

Directory Layout Angular-Seed

app/                    --> all of the source files for the application
  app.css               --> default stylesheet
  components/           --> all app specific modules
    version/              --> version related components
      version.js                 --> version module declaration and basic "version" value service
      version_test.js            --> "version" value service tests
      version-directive.js       --> custom directive that returns the current app version
      version-directive_test.js  --> version directive tests
      interpolate-filter.js      --> custom interpolation filter
      interpolate-filter_test.js --> interpolate filter tests
  view1/                --> the view1 view template and logic
    view1.html            --> the partial template
    view1.js              --> the controller logic
    view1_test.js         --> tests of the controller
  view2/                --> the view2 view template and logic
    view2.html            --> the partial template
    view2.js              --> the controller logic
    view2_test.js         --> tests of the controller
  app.js                --> main application module
  index.html            --> app layout file (the main html template file of the app)
  index-async.html      --> just like index.html, but loads js files asynchronously
karma.conf.js         --> config file for running unit tests with Karma
e2e-tests/            --> end-to-end tests
  protractor-conf.js    --> Protractor config file
  scenarios.js          --> end-to-end scenarios to be run by Protractor

AngularJS/Seed (last edited 2015-03-06 15:31:16 by resteve)

Contenidos creados por el equipo de Zikzakmedia. Creative Commons By-NC-SA

PythonZikzakmedia