make typegen
- generates event types (src/types
) based ontypegen.json
make codegen
- generates TypeORM models based on the input schemamake dbgen
- generates theData-{timestamp}.js
database migration indb/migrations
(PostgreSQL service must be running) based on the difference between current database schema and the TypeORM models insidesrc/models
make migrate
- runs database migrations fromdb/migrations
(PostgreSQL service must be running)make build
- builds the codemake build-docker
- builds thejoystream/orion
docker imagemake prepare
- runsnpm install + codegen + build
make process
- executesmake migrate
and runs the processor locally (ie. not as a docker service)make serve
- runs the GraphQL server locally (not as a docker service)make serve-auth-api
- runs theauth-api
service locally (not as a docker service)make up-squid
- runs dockerizedorion_db
,orion_processor
,orion_graphql-server
andorion_auth-api
services (docker-compose up -d
)make up-archive
- runs dockerizedarchive_db
,subsquid-gateway
,archive-ingest
andarchive-explorer
services (docker-compose -f archive/docker-compose.yml up -d
)make up
- runsup-squid
+up-archive
make down-squid
- removes docker services and volumes created byup-squid
make down-archive
- removes docker services and volumes created byup-archive
make down
- runsdown-squid
+down-archive
npm run generate:schema
- converts schema files fromsrc/schema
into a singleschema.graphql
file (for Squid Aquarium compatibility)npm run generate:types:auth-api
- generates types for theauth-api
service based on the OpenAPI schema (see: Authentication API)npm run generate:docs:auth-api
- generates markdown documentation for theauth-api
service based on the OpenAPI schema (see: Authentication API)npm run build
- builds the codenpm run lint
- runs the linter (ESLint), see: Code stylenpm run format
- runs the code formatter (Prettier), see: Code stylenpm run checks
- runs basic checks (linting, formatting, type checking), see: Code stylenpm run db:migrate
- runs database migrations, same asmake migrate
npm run processor-start
- similar tomake process
, but doesn't run migrationsnpm run graphql-server-start
- similar tomake serve
npm run auth-server-start
- same asmake serve-auth-api
npm run tests:auth-api
- runs unit tests for theauth-api
service (see: Authentication API).npm run offchain-state:export
- performs the offchain state export, see: Preserving offchain state