Skip to content

ENSNode Development and Contributions

Prerequisites

Prepare Workspace

Clone this repository:

Terminal window
git clone git@github.com:namehash/ensnode.git
cd ensnode

Install Dependencies

Terminal window
pnpm install

Running ENSNode

Configuring Environment Variables

Terminal window
cd apps/ensindexer
cp .env.local.example .env.local

1. Running Postgres

Ensure Postgres in the background, providing its connection details to ENSIndexer via DATABASE_URL.

2. Running ENSRainbow

Terminal window
pnpm run serve

3. Running ENSIndexer

Terminal window
# from monorepo root
pnpm run -F ensindexer dev
# or from apps/ensindexer
pnpm run dev

4. Running ENSAdmin

Terminal window
cd apps/ensadmin
cp .env.local.example .env.local
Terminal window
# from monorepo root
pnpm run -F ensadmin dev
# or from apps/ensadmin
pnpm run dev

Using Docker Compose

You can use Docker Compose to set up the ENSNode suite, along with its dependencies.

Prerequisites

Before you can use Docker Compose, ensure you have the following installed on your machine:

Running the Applications

To start the ENSNode services using Docker Compose, follow these steps:

Terminal window
docker compose up

Stopping the Applications

To stop the running applications, you can press Ctrl + C in the terminal where Docker Compose is running. If you want to remove the containers and networks created by Docker Compose, you can run:

Terminal window
docker compose down

Building Docker Images

For detailed instructions on building Docker images for ENSNode components, see the Building Docker Images guide.