GithubHelp home page GithubHelp logo

cupojoseph / tellor.iox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tellor-io/tellor.iox

0.0 0.0 0.0 9.23 MB

JavaScript 72.00% Makefile 0.05% HTML 0.53% SCSS 27.31% Shell 0.06% Dockerfile 0.05%

tellor.iox's Introduction

Development

  1. Go to folder 'frontend'

    cd frontend

  2. Install dependencies

    npm install

  3. Start the server

    npm start

  4. Open a browser: http://localhost:3000

[BELOW IS FROM PREVIOUS VERSION:]

App structure

Graphql data fetching

Contract events are cached and mapped into usable entities on thegraph https://thegraph.com/explorer/subgraph/tellor-io/lens https://thegraph.com/explorer/subgraph/tellor-io/lens-rinkeby

These entites can be queried at https://api.thegraph.com/subgraphs/name/tellor-io/lens https://api.thegraph.com/subgraphs/name/tellor-io/lens-rinkeby

This app uses react-apollo to handle the graph queries

  • ApolloProvider initialized in src/index.js
  • ApolloClient is then available throughout the app, see
  • Each view has data fetching components that grab the graphData and make it available for the other components in the view
  • Fetch component using the useQuery hook: src/components/shared/GraphFetch.js
  • graph queries: src/utils/queries.js
  • Resolver functions are called on each entity as it is fetched to hydrate/format the data to make component logic simpler: src/utils/resolvers.js

Styling

tellor.iox's People

Contributors

wallacempalmer avatar joshuasamaniego avatar bennisan86 avatar imaginebeingatcomputers avatar themandalore avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.