Skip to content

alexpchin/angular-grunt-bower-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Angular App

This is a basic angular app using:

  • ui.router
  • angular-jwt

The front-end framework is bootstrap#v4.0.0-alpha.

It uses IIFE's to manage global variables.

Uses Lo-Dash template strings for the grunt templates.

Getting started

To start, clone the app, delete the .git directory and git init. Then run:

npm install

Next run to start a new app run:

grunt start --name=chooseName

The app will be created in a new app directory.

Generators

You can use grunt -h to see a list of available tasks:

To start a new app run:

grunt start --name=chooseName

There are additional options.

One you have done this, you can generate anyone of these:

controller

grunt g:controller --name=main

This will create a controller javascript file and a view directory.

factory

grunt g:factory --name=factory_name

service

grunt g:service --name=service_name

constant

grunt g:constant --name=test --key=API --value=http://localhost:3000 --type=string
grunt g:constant --name=twitter --key=TWITTER --value=process.env.TWITTER_CLIENT_ID

directive

grunt g:directive --name=directive_name

This will create both a javascript file and a corresponding view file found in app/views/directives.

Contribute

If there are any issues or you want to add things, please fork and PR.

About

Some grunt tasks to quickly make an Angular project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published