JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q30314F
  • License ISC

step1 configurar los enlaces de la blockchain en el archivo gatsby-config.js

Package Exports

  • gatsby-source-subsocial
  • gatsby-source-subsocial/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gatsby-source-subsocial) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

step1 configurar los enlaces de la blockchain en el archivo gatsby-config.js

con los siguientes parametros

substrateNodeUrl .- websoket de la blockchain a conectarse ipfsNodeUrl .- url de la api para las ipfs recommendedSpaceIds .- un listado de ids de spaces que quiera acceder addressAccount .- direecion de cuenta en la blockchain

example

{
    resolve: `gatsby-source-subsocial`,
    options: {
    substrateNodeUrl: `wss://para.subsocial.network`,
    ipfsNodeUrl: `https://app.subsocial.network/ipfs`,
    recommendedSpaceIds: ["1", "1001", "1002", "10316"],
    addressAccount: "3sD7b8HxT2rg8SNhgZZcgG3bSffVLq5drAvDqDfM8CJ6SU6x"
    },
},

step 2

realizar las consultas mediante graphQL en sus componentes reactjs

por ejemplo

export const query = graphql`
  query {
    allSpacesSubsocial {
      edges {
        node {
          id
          content {
            name
            tags
            about
            email
            image
            links
            summary
            isShowMore
          }
        }
      }
    }
  }
`

step 3

configurar credenciales para ghost en el archivo gatsby-config.js

apiUrl .- url de su pagina en ghost contentApiKey .- apikey que se genera desde su pagina de ghost version .- es versionado para la aplicacion por defecto v5.0