> For the complete documentation index, see [llms.txt](https://shadows-blockchain.gitbook.io/shadows/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shadows-blockchain.gitbook.io/shadows/getting-started/setting-up-a-node.md).

# Setting Up a Node

Setting Up a Shadows Node

## 1. Building

Install Rust:

```bash
curl https://sh.rustup.rs -sSf | s
```

{% hint style="info" %}
Make sure you have `submodule.recurse` set to true to make life with submodule easier.
{% endhint %}

```bash
git config --global submodule.recurse true
```

Install required tools and install git hooks:

```bash
make init
```

Build all native code:

```bash
make build
```

## 2. Run

You can start a development chain with

```bash
make run
```

## 3. Development

To type check:

```bash
make check
```

To purge old chain data:

```bash
make purge
```

To purge old chain data and run:

```bash
make restart
```
