# Run a Local Node in Codespaces

Codespaces is a cloud development environment (CDE) that's hosted in the cloud. You can customize your project for GitHub Codespaces by committing configuration files to your repository (often known as Configuration-as-Code), which creates a repeatable codespaces configuration for all users of your project. [GitHub Codespaces overview](https://docs.github.com/en/codespaces/overview)

***

## Prerequisites

* Review first the [Quickstart for GitHub Codespaces](https://docs.github.com/en/codespaces/getting-started/quickstart) guide.
* Install VS Code Desktop application.
* In [Editor preference](https://github.com/settings/codespaces) change your client to `Visual Studio Code` (Should not be `Visual Studio Code for the Web`)

***

## Configure Dev Container

To configure t he dev container, open the [Hedela Local Node repo](https://github.com/hashgraph/hedera-local-node) and click on the `Code`->`Codespaces`->`...`-> `Configure dev container`.&#x20;

<figure><img src="https://72010995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LsUmP_7NoX2exvbv_Ps%2Fuploads%2F3MuL6zvHM6KbC6DRkytN%2Fcodespace-config-dev-container.png?alt=media&#x26;token=59d1f997-6117-4045-9f7c-e8f57423b6e7" alt="" width="563"><figcaption></figcaption></figure>

This will open the dev container configuration file where you can customize your configuration like the CPUs and memory.

<figure><img src="https://72010995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LsUmP_7NoX2exvbv_Ps%2Fuploads%2FKjmf28Xj7HDyERkiigVb%2Fcodespace-config-file.png?alt=media&#x26;token=59a7f076-50a9-41bd-9e1e-1a95c69d2a3f" alt=""><figcaption></figcaption></figure>



{% hint style="info" %}
**Note**: If you make changes to your config file, commit and push your changes before running local node, to ensure the project starts with the right configuration.
{% endhint %}

## Creating and Running Your Codespace

Open the [Hedela Local Node repo](https://github.com/hashgraph/hedera-local-node) and click on the `Code`->`Codespaces`->`...`-> `New with options...` button and choose the appropriate settings:

<figure><img src="https://72010995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LsUmP_7NoX2exvbv_Ps%2Fuploads%2FuaZlASnSFICzxvsbuvFv%2Flocal-node-codespaces.jpeg?alt=media&#x26;token=7df4434b-a01b-4298-9966-1897dd29a4f4" alt="" width="563"><figcaption></figcaption></figure>

Once your codespace is created, the template repository will be automatically cloned into it. Your codespace is all set up and have the local node running!

<figure><img src="https://72010995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LsUmP_7NoX2exvbv_Ps%2Fuploads%2FTdcyaZxkLWyjL8aVBQ78%2Flocal-node-codespace-config.png?alt=media&#x26;token=d78e0cd2-7d53-43fc-b86d-764d81b2eb30" alt="" width="563"><figcaption></figcaption></figure>

***

## Conclusion and Additional Resources

Congrats on successfully setting up your Codespace and running a Hedera Local Node!&#x20;

**➡** [**Hedera Local Node Repository**](https://github.com/hashgraph/hedera-local-node#readme)

**➡** [**Quickstart for GitHub Codespaces**](https://docs.github.com/en/codespaces/getting-started/quickstart)

**➡** [**Adding Dev Container Config to Repo**](https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration)
