Git Product home page Git Product logo

angularjs-boilerplate's Introduction

AngularJs boiler-plate

With Foundation and Sass (most boiler-plates are with Bootstrap and Less).

The tools we use are Node Package Manager (npm), Bower and Grunt

  • Read the package.json for the npm packages.
  • Read the bower.json for the bower fontend packages.
  • Read the Gruntfile for background processing in development mode.

Install

sudo apt-get install nodejs
sudo npm install -g bower
sudo npm install -g grunt-cli

Run node

Install all the packages from packages.json.

npm install

Run bower

Install all the packages from bower.json.

bower install

Run grunt for development

Run the default actions from Gruntfile.js to develop.

grunt

Run the server on localhost:3000 for development.

grunt connect

Browse to localhost:3000

Grunt development packages (package.json)

  • grunt-env -> for development and production enviroment
  • grunt-preprocess -> create the index.html from src/layout/index.html
  • grunt-contrib-copy -> to copy src/* files and bower files to public/shared/dev/
  • grunt-contrib-concat -> push all files (js,css) to one 'uncompressed file'
  • grunt-contrib-sass -> scss files so we can use vars in our css files, and more!
  • grunt-contrib-watch -> to run all tasks after a file is changed in i.o. src/*
  • grunt-contrib-connect -> http server for local development
  • grunt-contrib-uglify -> minify javascript files for production
  • grunt-contrib-cssmin -> minify css files for production
  • grunt-contrib-clean -> delete development files for production.

Run grunt for production

Create the production myApp and clean up develoment files.

grunt prod

Publish the public directory on a webserer

angularjs-boilerplate's People

Contributors

andriesfilmer avatar

Watchers

 avatar  avatar

Forkers

patlegris

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.