Skip to content

This is basic template to start any javascript web application, which utilizes npm and browserify to manage and run the app.

Notifications You must be signed in to change notification settings

rathorer/javascript-app-seed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javascript-app-seed

This is basic template to start any javascript web application, which utilizes npm and browserify to manage and run the app.

The browserify takes care the dependency injection.

How to start:

  1. Clone the seed project to you local system.
  2. Open the command prompt
  3. run npm install It will install the dev dependencies and create the node_module folder
  4. run npm start It will start the app, if browser doesn't open automatically, visit http://localhost:9966/

In case you see this error: ####Error: Could not find a suitable bundler!

Just install browserify globally:

npm install -g browserify

refer this for reasoning

Add new files to your app with new modules:

file: newModule.js

module.newModule = function(name){
	return 'Hello '+name+'!';
}

and inject this file/module as below:

var newModule = require('./app/newModule.js');

About

This is basic template to start any javascript web application, which utilizes npm and browserify to manage and run the app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published