Skip to content

gwythen/angular-seed

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

augmented-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 project is based on angular-seed.

As to adapt it to my typical workflow, it was augmented with Grunt, Bootstrap, Compass, AngularUI-Bootstrap and AngularUI-router.

The seed app doesn't do much, just shows how to wire two controllers and views together.

What's inside the package

Here's a list of the libraries used by the seed application:

Dev environment:

  • Bower: A package manager for the web
  • Grunt: The Javascript Task Runner
  • http-server: a simple zero-configuration command-line http server for node.js

Front-End development:

  • Bootstrap: a sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • AngularUI: Angular directives for Bootstrap
  • Compass: CSS authoring tool

Testing:

  • Protractor: E2E test framework for Angular apps
  • Jasmine: Behavior-Driven JavaScript
  • Karma: AngularJS test runner

Getting Started

To get you started you can simply clone this repository and install the dependencies:

Clone augmented-angular-seed

Clone the angular-seed repository using git:

git clone https://github.com/gwythen/angular-seed.git
cd angular-seed

Install Dependencies

We have two kinds of dependencies in this project: tools and angular framework code. The tools help us manage and test the application.

Angular-seed comes with a preconfigured npm that 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 need
  • bower_components - contains the angular framework files

By default, the bower_components directory is created in your app folder. In order to change it, please edit the .bowercc file located in the root directory.

Run the Application

Angular-seed comes with a simple development web server. The simplest way to start this server is:

npm start

Run Grunt

In order to compile the sass files, you need to run the Grunt build process. In order to do so, simply type:

grunt

Grunt Watch

We have preconfigured Grunt to watch sass, javascript and html files and trigger a live reload. In order to activate it, just type

grunt watch

Now browse to the app at http://localhost:8000/app/index.html.

Directory Layout

app/                --> all of the files to be used in production
  css/              --> css files
    app.css         --> default stylesheet
  scss/             --> sass files
    app.scss        --> default stylesheet
  img/              --> image files
  fonts/            --> font files
  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
  js/               --> javascript files
    app.js          --> application
    controllers.js  --> application controllers
    directives.js   --> application directives
    filters.js      --> custom angular filters
    services.js     --> custom angular services
  partials/             --> angular view partials (partial html templates)
    partial1.html
    partial2.html

test/               --> test config and source files
  protractor-conf.js    --> config file for running e2e tests with Protractor
  e2e/                  --> end-to-end specs
    scenarios.js
  karma.conf.js         --> config file for running unit tests with Karma
  unit/                 --> unit level specs/tests
    controllersSpec.js      --> specs for controllers
    directivessSpec.js      --> specs for directives
    filtersSpec.js          --> specs for filters
    servicesSpec.js         --> specs for services

Contact

For more information on AngularJS please check out http://angularjs.org/ For more information on Angular-seed please check out https://github.com/angular/angular-seed

About

Seed project for angular apps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.9%
  • CSS 12.1%