Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • chrome-manifest-v3
  • feature/migrate-cordova-13
  • feat/improve-network-scan
  • feat/force-migration-check
  • develop
  • feature/encrypted_comment
  • feature/android_api_19
  • gitlab_migration_1
  • rml8
  • v1.7.15-rc1
  • v1.7.14
  • v1.7.13
  • v1.7.12
  • v1.7.11
  • v1.7.10
  • v1.7.9
  • v1.7.8
  • v1.7.7
  • v1.7.6
  • v1.7.5
  • v1.7.4
  • v1.7.3
  • v1.7.2
  • v1.7.1
  • v1.7.0
  • v1.7.0-rc2
  • v1.7.0-rc1
  • v1.6.12
  • v1.6.11
30 results

development_tutorial-01.md

Blame
  • duniter-vue

    Duniter Panel, application en Vue pour explorer les fonctionnalités de Duniter v2 et de l'écosystème associé.

    Développer

    Installer les dépendances et lancer l'app localement en mode dev.

    pnpm install
    pnpm dev

    Mettre à jour les API

    Pour mettre à jour les schémas graphql et les métadonnées du runtime.

    # get schema and generate types
    pnpm exec get-graphql-schema https://${SUBSQUID_DOMAIN}/v1/graphql > src/squid/schema.graphql
    pnpm exec get-graphql-schema https://${DATAPOD_DOMAIN}/v1/graphql > src/datapod/schema.graphql
    pnpm run generate:graphql:squid
    pnpm run generate:graphql:datapod
    # get metadata and use them to generate types
    curl -H "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "state_getMetadata", "params":[]}' http://localhost:9944 -o rsrc/metadata.json
    ./node_modules/.bin/polkadot-types-from-defs --endpoint ./rsrc/metadata.json --input ./interfaces --package duniter-vue
    ./node_modules/.bin/polkadot-types-from-chain --endpoint ./rsrc/metadata.json --output ./interfaces --package duniter-vue