Skip to content

Instantly share code, notes, and snippets.

View RGkevin's full-sized avatar
🎯
Focusing

Kevin López RGkevin

🎯
Focusing
View GitHub Profile
@RGkevin
RGkevin / gruntfile.js
Created March 27, 2014 22:27
livereload
// Generated on 2014-02-26 using generator-angular 0.6.0
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
@RGkevin
RGkevin / app.js
Created March 6, 2014 03:46
app config
'use strict';
angular.module('whiteLabelApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute',
'ui.bootstrap',
'pascalprecht.translate',
'restangular'
@RGkevin
RGkevin / auth.js
Last active August 29, 2015 13:57
Auth service
'use strict';
angular.module('whiteLabelApp')
.service('Auth', ['Restangular', function (Restangular) {
// AngularJS will instantiate a singleton by calling "new" on this function
var self = this;
self.login = function(data, success, fail, end) {
return Restangular
.all('auth')
@RGkevin
RGkevin / wl-project.js
Last active August 29, 2015 13:56
WL Project definition
'use strict';
var routes = {
home: '/',
login: '/login',
logout: '/logout',
search: '/search',
vendor: {
all : '/vendor', // list
one: '/vendor/{id}', // profile

Using Yeoman and Jade

Getting started

  • Make sure you have yo installed: npm install -g yo
  • Run: yo webapp
  • Install grunt-contrib-jade: npm install grunt-contrib-jade --save-dev

Customization