Giter Club home page Giter Club logo

requirejs-angularjs-template's Introduction

#RequireJS + AngularJS Template

RequireJS + AngularJS Template that it can be used for new projects.

Used technologies:

  • RequireJS + AngularJS.
  • Unit Testing with Karma and Jasmine.
  • Package Management with Bower and npm.
  • Optimized CSS and JS distribution with Grunt.

This RequireJS + AngularJS configuration is based on this complete tutorial by StarterSquad.

If you want to see a complete example using this template, visit Zeldify Your Name

##Requisites

  • NodeJS and npm
  • Bower installed globally npm install -g bower
  • Grunt cli installed globally npm install -g grunt-cli
  • Karma cli installed globally npm install -g karma-cli

##Download Clone this repository:

git clone https://github.com/albert-gonzalez/requirejs-angularjs-template

##Install Go to requirejs-angularjs-template path and execute

npm start

This command will install the node modules, it will execute bower install, it will build the js and it will start the http-server

Open the url localhost:8000 in your browser

##Build JS and CSS distribution There is a Gruntfile configured for building the js distribution with this command:

grunt build

This will compile javascript with the r.js optimizer

Unit Testing

Execute:

karma start

This will start the karma runner and execute the test.

Karma config is in the file karma.conf.js

Requirejs config for the test is in the file test/test-main.js. This file configures Requirejs paths and finds the test for executing them.

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.