/wimdu-sample

This is a sample for reach a job in wimdu

Primary LanguageApacheConf

Description Module

Requirements:

  1. node - download installer from http://nodejs.org or use brew
  2. bower - npm install -g bower
  3. gulp - npm install -g gulp

Local setup:

  1. Clone repository
  2. Install all dependencies:
$ npm install
$ bower install

Run server:

  1. Inside main dir run gulp watch
  2. Test environment url: http://localhost:8000/test

More Gulp Tasks:

  1. gulp - alias for gulp watch
  2. gulp watch - to run development server
  3. gulp clean - to clean all files

My Notes 25-08-2015

Installing Angular

$ bower install --save angular

Adding bower component angular

<!-- build:js scripts/vendor.js -->
<!-- bower:js -->
<script src="bower_components/angular/angular.js"></script>
<!-- endbower -->
<!-- endbuild -->

Changing app/index.html for work with Angular

<html ng-app="app">

And

<body ng-controller="MainCtrl">

Prepare Jasmine to use with angular

$ bower install --save angular-mocks

Adding dependences in app/test/index.hmtl

<script type="text/javascript" src="../bower_components/angular/angular.js"></script>
<script type="text/javascript" src="../bower_components/angular-mocks/angular-mocks.js"></script>

Sample dist working

http://wimdu.bdunk.com/