cp .env.example .env
pnpm install
pnpm docker:dev
pnpm studio
- serves web interface for drizzle studio on https://local.drizzle.studio
pnpm migrate:generate
- creates migration file from changes found in schema files.
pnpm migrate
- runs migrations
pnpm db:push
- pushes schema changes to the database
pnpm db:seed
- seeds the database with initial data (/src/database/seed.ts file)
pnpm db:reset
- deletes all data and tables from the database
Build image
docker build -t sovryn/indexer .
Run image
docker run -p 8000:8000 -it sovryn/indexer
Refer to the API documentation for more information on how to use the API.