# Setup

### Developer Setup <a href="#developer-setup" id="developer-setup"></a>

The stack is a simple one:

* Solidity
* JavaScript
* Node/NPM
* HardHat
* Waffle
* Ethers

#### Install Node (also installs NPM) <a href="#install-node-also-installs-npm" id="install-node-also-installs-npm"></a>

* Use the latest [LTS (long term support) version](https://nodejs.org/en/download/).

#### Install required Node modules <a href="#install-required-node-modules" id="install-required-node-modules"></a>

All NPM resources are project local. No global installs required.

```shell-session
cd path/to/boson-protocol-contracts 
npm install
```

#### Configure Environment <a href="#configure-environment" id="configure-environment"></a>

* Copy `.env.example` to `.env` and edit to suit.
* API keys are only needed for deploying to public networks.
* `.env` is included in `.gitignore` and will not be committed to the repo.

#### Local Development <a href="#local-development" id="local-development"></a>

If you are only perusing the repo, generating documentation, or running tests, the above setup is fine.

However if you are building a dapp or scripting against the protocol, you'll want to get set up for local development, running a node process, etc.

* [Local Development Setup](/v2.4.2/legacy-docs/technical-documentation/smart-contracts/local-development.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bosonprotocol.io/v2.4.2/legacy-docs/technical-documentation/smart-contracts/setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
