# Build Instructions for Nodejs

## Prerequisties

* Steamworks SDK 1.40
* nodejs
* node-gyp

Please follow the [instructions](get-steamworks-sdk.md) on getting Steamworks
SDK.

## Build Steps

```shell
# Change to the Greenworks source directory.
cd <greenworks_src_dir>

# Install the dependencies of Greenworks, "nan" module.
npm install

# Configure gyp project.
node-gyp configure

# Build Greenworks addon.
node-gyp rebuild
```

Once building is done, you can find `greenworks-(linux/win/osx).node` binary (
depending on your OS) under `build/Release`.

Add doc for building instructions for nodejs.
Add doc for building instructions for nodejs.
