<commit_before># Backendless CodeRunner for Node.js

This is a tool allowing to write, debug and deploy your Backendless custom business logic

[![Build Status](https://img.shields.io/travis/Backendless/JS-Code-Runner/master.svg?style=flat)](https://travis-ci.org/Backendless/JS-Code-Runner)
[![npm version](https://img.shields.io/npm/v/backendless-coderunner.svg?style=flat)](https://www.npmjs.com/package/backendless-coderunner)

## Getting Started
  1. Create a new node.js project for your Backendless Business Logic
  2. Add `backendless-coderunner` tool as a dev dependency

    `npm i backendless-coderunner --save-dev`

  3. Put your business logic code under `{projectDir}/app` directory.
  4. Deploy it to production

    `node_modules/.bin/coderunner deploy`


## Code Generation
  Custom business logic generator simplifies the development process. The code generator is a part of Backendless Console. Developers use the graphical interface to select API events and schedule timers for which the system generates code in real-time. The generated code includes everything a developer needs in order to add custom business logic.

  1. Please follow [this instruction](https://backendless.com/documentation/business-logic/php/bl_code_generation_php.htm) to generate and download the code. Generated zip file contains generated code and package.json with a single `backendless-coderunner` dependency.
  2. After generating, downloading and unzipping the code, install the coderunner :

    `npm i`

  3. Modify the code according to your needs.
  4. Deploy the changes to Backendless :

    `npm run deploy`


## Debug Code
#### Using IntelliJ IDEA
    TODO: Describe me

#### Using node-inspector
    TODO: Describe me<commit_msg>doc (readme) add wiki links in debug section<commit_after># Backendless CodeRunner for Node.js

This is a tool allowing to write, debug and deploy your Backendless custom business logic

[![Build Status](https://img.shields.io/travis/Backendless/JS-Code-Runner/master.svg?style=flat)](https://travis-ci.org/Backendless/JS-Code-Runner)
[![npm version](https://img.shields.io/npm/v/backendless-coderunner.svg?style=flat)](https://www.npmjs.com/package/backendless-coderunner)

## Getting Started
  1. Create a new node.js project for your Backendless Business Logic
  2. Add `backendless-coderunner` tool as a dev dependency

    `npm i backendless-coderunner --save-dev`

  3. Put your business logic code under `{projectDir}/app` directory.
  4. Deploy it to production

    `node_modules/.bin/coderunner deploy`


## Code Generation
  Custom business logic generator simplifies the development process. The code generator is a part of Backendless Console. Developers use the graphical interface to select API events and schedule timers for which the system generates code in real-time. The generated code includes everything a developer needs in order to add custom business logic.

  1. Please follow [this instruction](https://backendless.com/documentation/business-logic/php/bl_code_generation_php.htm) to generate and download the code. Generated zip file contains generated code and package.json with a single `backendless-coderunner` dependency.
  2. After generating, downloading and unzipping the code, install the coderunner :

    `npm i`

  3. Modify the code according to your needs.
  4. Deploy the changes to Backendless :

    `npm run deploy`


## Debug Code
[Using IntelliJ IDEA](https://github.com/Backendless/JS-Code-Runner/wiki/Debugging-Server-Code-in-WebStorm)

[Using node-inspector](https://github.com/Backendless/JS-Code-Runner/wiki/Debugging-ServerCode-with-nodeinspector)
{'fraction_non_alphanumeric': 0.08821104699093157, 'fraction_numerical': 0.004396812311074471, 'mean_word_length': 4.473684210526316, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '277121', 'n_tokens_mistral': 1074, 'n_tokens_neox': 1025, 'n_words': 372}