Skip to content

Latest commit

 

History

History
82 lines (51 loc) · 1.45 KB

readme.md

File metadata and controls

82 lines (51 loc) · 1.45 KB

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.