<commit_before># serve
test server for javascript apps mainly for angular / yo / ngbp

## Synopsis
This is a small tool to run very basic static file server to test webapps.

## Installation

	npm install serve --save-dev

then edit package.json script. e.g.

	scripts: {
		serve: "node ./node_modules/serve/bin/start --home yourWwwDir --port 3000
	}

	npm run serve

alternativly you can run init script in `/bin/init` which will create `scripts` and public direcotries, and creates start script
in your main project folder and adds this line into the package.json scripts

	serve: "node ./scripts/start --home public"

serve will use default port 3001, you can change any of that.

## Use
### npm
add run srcript into scripts

    scripts: {
      start: "node ./bin/start --home yourWwwDirectory --port 3000"
	  //or
      serve: "node ./bin/start --home yourWwwDirectory --port 3000"
    }

the above will  setup static http server running on port 3000 (default is 3001) and serving files from ./yourWwwDirectory
relative to your npm `package.json` file

	npm start

or

	npm run serve


## TODO
make the script which would would allow to run any angular app on this simple server without using gulp or grunt solutions
or without running apache localhost to server static files.

<commit_msg>more TODO<commit_after># serve
test server for javascript apps mainly for angular / yo / ngbp

## Synopsis
This is a small tool to run very basic static file server to test webapps.

## Installation

	npm install serve --save-dev

then edit package.json script. e.g.

	scripts: {
		serve: "node ./node_modules/serve/bin/start --home yourWwwDir --port 3000
	}

	npm run serve

alternativly you can run init script in `/bin/init` which will create `scripts` and public direcotries, and creates start script
in your main project folder and adds this line into the package.json scripts

	serve: "node ./scripts/start --home public"

serve will use default port 3001, you can change any of that.

## Use
### npm
add run srcript into scripts

    scripts: {
      start: "node ./bin/start --home yourWwwDirectory --port 3000"
	  //or
      serve: "node ./bin/start --home yourWwwDirectory --port 3000"
    }

the above will  setup static http server running on port 3000 (default is 3001) and serving files from ./yourWwwDirectory
relative to your npm `package.json` file

	npm start

or

	npm run serve


## TODO

### wrapping script
make the script which would would allow to run any angular app on this simple server without using gulp or grunt solutions
or without running apache localhost to server static files.

### integration script
integration into grunt and gulp would be good

### write some tests

### documentation - youDoc ?

{'fraction_non_alphanumeric': 0.07106227106227106, 'fraction_numerical': 0.017582417582417582, 'mean_word_length': 3.4262560777957862, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4679127', 'n_tokens_mistral': 830, 'n_tokens_neox': 739, 'n_words': 386}