Development

Running locally

Requirements

Installing dependencies

Install a recent Node.js version and pnpm:

curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
curl -fsSL https://get.pnpm.io/install.sh | sh -

Git clone the repository:

git clone https://github.com/Blobscan/blobscan.git
cd blobscan

Install all the Node.js dependencies:

pnpm fetch -r
pnpm install -r
SKIP_ENV_VALIDATION=true npm run build

Setup environment variables

PostgreSQL databse

You need to have access to a database.

You can use the provided docker-compose file to spin up a PostgreSQL service:

docker compose up -d postgres

Configure the environment variables accordingly including the DATABASE_URL.

Run

Then run the development command:

pnpm dev

Lastly, create the database schema:

cd packages/db
pnpm db:push
Previous
Codebase overview