angular-seed — the seed for AngularJS apps
This project is an application skeleton for a typical AngularJS web app. You can use it to quickly bootstrap your angular webapp projects and dev environment for these projects.
The seed contains a sample AngularJS application and is preconfigured to install the Angular framework and a bunch of development and testing tools for instant web development gratification.
The seed app doesn't do much, just shows how to wire two controllers and views together.
To get you started you can simply clone the angular-seed repository and install the dependencies:
You need git to clone the angular-seed repository. You can get it from http://git-scm.com/.
We also use a number of node.js tools to initialize and test angular-seed. You must have node.js and its package manager (npm) installed. You can get them from http://nodejs.org/.
Clone the angular-seed repository using git:
git clone https://github.com/angular/angular-seed.git
cd angular-seed
We have two kinds of dependencies in this project: tools and angular framework code. The tools help us manage and test the application.
- We get the tools we depend upon via
npm
, the node package manager. - We get the angular code via
bower
, a client-side code package manager.
We have preconfigured npm
to automatically run bower
so we can simply do:
npm install
Behind the scenes this will also call bower install
. You should find that you have two new
folders in your project.
node_modules
- contains the npm packages for the tools we needapp/bower_components
- contains the angular framework files
Note that the bower_components
folder would normally be installed in the root folder but
angular-seed changes this location through the .bowerrc
file. Putting it in the app folder makes
it easier to serve the files by a webserver.
We have preconfigured the project with a simple development web server. The simplest way to start this server is:
npm start
Now browse to the app at http://localhost:8000/app/index.html
.
assets --> Bootstrap admin package paid
/css
/less
/fonts
/ico
/img
/gallery
/gallery/.quarantine
/gallery/.tmb
/ios-style-checkboxes
/iphone-style-checkboxes
/js
/pages
/realGrid
/uncompressed
misc
/elfinder-connector
/realGrid
bower_components
/angular
/angular-loader
/angular-mocks
/angular-route
/html5-boilerplate
/css
/doc
/img
/js
/js/vendor
css
img
js --> javascript files
app.js --> application
controllers.js --> application controllers
directives.js --> application directives
filters.js --> custom angular filters
services.js --> custom angular services
/controllers --> application Controllers partials (partial html templates)
partials --> angular view partials (partial html templates)
For more information on AngularJS please check out http://angularjs.org/