Coder Social home page Coder Social logo

chemaclass / cardano-explorer-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cardano-foundation/cardano-explorer-app

0.0 2.0 0.0 75 MB

Cardano Explorer App

License: Apache License 2.0

Shell 0.03% JavaScript 2.55% TypeScript 70.40% Nix 12.08% SCSS 14.94%

cardano-explorer-app's Introduction

Cardano Explorer App

Tests code style: prettier

A React app with GraphQL client interfacing with Cardano GraphQL.

Environment Variables

See environment for defaults.

  • CARDANO_ERA
  • CARDANO_NETWORK
  • GRAPHQL_API_PROTOCOL
  • GRAPHQL_API_HOST
  • GRAPHQL_API_PORT
  • GRAPHQL_API_PATH
  • POLLING_INTERVAL
  • GA_TRACKING_ID
  • DEBUG

Build

This project uses an offline package cache to enable reproducible builds.

yarn

yarn --offline && yarn static:build

nix

nix-build -A cardano-explorer-app

Deploy

The static bundle can be deployed using a standard web server. A simple Node.js program is available for deploying the build to an AWS S3 bucket.

AWS_ACCESS_KEY_ID=your_access_key_id \
AWS_SECRET_ACCESS_KEY=your_secret_access_key node \
./deploy/example_deployment.js

Development

The environment is configured to access a remote managed deployment of the API, however you can run a local stack using Docker and use a .env to work offline. See .env.example

yarn dev

  • Starts the development version of the app by default at http://localhost:4000
  • Generates graphql typings from the referenced schema in @cardano-graphql/client-ts and documents within the codebase.
  • Any changes to graphql documents will trigger the TypeScript generator.

Storybook

All visual components should be developed in Storybook first.

yarn storybook

Continuous Deployment

The master and develop branches are continuously deployed, with PRs creating merge previews to assist with review:

Mainnet

Netlify Status

Testnet

Netlify Status

cardano-explorer-app's People

Contributors

cleverca22 avatar craigem avatar deejayelly avatar dependabot[bot] avatar disassembler avatar dominikguzei avatar iohk-bors[bot] avatar jplorek-atix avatar lgobbi-atix avatar nikolaglumac avatar rhyslbw avatar sam-jeston avatar smnhgn avatar thedanheller avatar topseniors avatar

Watchers

 avatar  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.