open-index/open-npm huggingface dataset:
npm package: @ixchuk/unity-api-mocks
Description: Unity API Mocks
Latest version: 1.0.18

# Unity API Mocks

This is a collection of API mocks that simulate the Unity API. 

Using the mocks allows a developer to create UI components in isolation w/o a need to deploy the Unity App.
 
## Prerequisites

* You’ll need to have Node >= 8.10 on your local development machine. 
Download and install nodejs - https://nodejs.org/en/download/

* Install yarn:
```npm install -g yarn```

* Install create-react-app tool:
```npm -g install create-react-app```

* Setup Intellective NPM repository:   
    1. [Encrypt](https://help.sonatype.com/repomanager3/formats/npm-registry#npmRegistry-AuthenticationUsingBasicAuth) your Intellective credentials in the following format: **intellective_email:password**.
    2. Put encrypted string into your ~/.npmrc file (create if absent)
        ```text
        email=ichukanov@intellective.com 
        always-auth=true 
        _auth=INSERT_ENCRYPTED_PASSWORD_HERE
        ```
        **Note: .npmrc should be in the user home directory.**
    3. Run command, 
        ```sh
        npm set @intellective:registry https://npm.intellective.com/repository/npm-main/
       ```
     
    Check your .npmrc file, it should look like the following:

    ```text
     @intellective:registry=https://npm.intellective.com/repository/npm-main/
     email=!your-id@intellective.com
     always-auth=true
     _auth=[YOUR_ENCRYPTED_CREDENTIALS]
    ```

## Usage

Run the following command to install unity-api-mocks:
`yarn add --dev @intellective/unity-api-mocks`