Home

Awesome

#RequireJS

These are some examples using RequireJS to load Javascript on demand

Requirements

These are the basic requirements for your application:

Install && Run

  1. Clone the source from github:

     git clone https://github.com/zigolis/JSOnDemand.git
     
    
  2. Go to JSOnDemand:

     cd JSOnDemand
     
    
  3. Download dependencies by bower:

     bower install
     
    
  4. Install the node http-server:

     npm i http-server -g
     
    
  5. Start node server:

     http-server
    
  6. Open the browser and go to localhost:

     127.0.0.1:8080
     
    

Directory 01 && 02

  1. Surf through the directories 01 && 02 with the console opened.

Directory 03

  1. To view the directory 03, first of all you'll need install the dependencies.

  2. Go to directory cd 03 and install them:

     npm i
     
    
  3. Execute grunt default task:

     grunt
     
     
     
    

Directory 04

  1. To view the directory 04, first of all you'll need install the dependencies.

  2. Go to directory cd 04 and install them:

     npm i
     
    
  3. Execute grunt default task:

     grunt
     
    

Made with love by Gabriel Zigolis!