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 Postgres in the background, providing its connection details to ENSIndexer via DATABASE_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
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 build 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 built images with:

Terminal window
docker compose up -d

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