Skip to content

ENSNode Development and Contributions

Clone this repository:

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

Ensure ENSDb is running in the background, providing its connection details to ENSIndexer via ENSDB_URL.

Terminal window
# from monorepo root
pnpm run -F @ensnode/ensrainbow serve
# or from apps/ensrainbow
pnpm run serve
Terminal window
# from monorepo root
pnpm run -F ensindexer dev
# or from apps/ensindexer
pnpm run dev
Terminal window
# from monorepo root
pnpm run -F ensapi dev
# or from apps/ensapi
pnpm run dev
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

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

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

Before running docker compose the images must be built with the latest changes: see the Building Docker Images guide.

If you make changes in the application code and wish to run those updates, you must build the relevant Docker container again.

Run the base stack with:

Terminal window
docker compose -f docker/docker-compose.yml up -d

For more compose files (devnet, CI), configuration options, and all available commands, see the Deploying with Docker guide and docker/README.md.

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

Terminal window
docker compose -f docker/docker-compose.yml down