GithubHelp home page GithubHelp logo

mvtcode / polkascan-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from polkascan/explorer-ui

0.0 1.0 0.0 1.25 MB

Polkascan UI Beta

License: GNU General Public License v3.0

Dockerfile 1.62% JavaScript 0.95% TypeScript 86.19% HTML 9.54% SCSS 1.62% Shell 0.07%

polkascan-ui's Introduction

Polkascan UI

This repository contains the code for the Polkascan client sided Angular application. It utilizes PolkADAPT to obtain data from multiple data sources.

Hic sunt dracones! this application is under heavy development, so tread carefully ๐Ÿ˜‰

Clone with submodules!

Use the following command to clone this repository and polkadapt submodule:

git clone --recurse-submodules <repository_url>

If you already cloned this repository, but without submodules, then you still need to initialize the submodules:

git submodule init
git submodule update

You need the submodule to build and run this application.

Build and run with Docker

If you want a quick and easy way to run the application, you can build a Docker image with the included Dockerfile. In a shell, from this project's directory, run the following command to build the Docker image:

docker build -t polkascan-ui .

To run the image and start a local webserver with the application:

docker run --rm -p 8000:80 polkascan-ui

You can now open your web browser and navigate to http://localhost:8000/ to visit the application.

If you want to configure URL's for the various API endpoints, there are environment variables that you can change with the -e docker argument, e.g.:

docker run --rm -p 8000:80 -e POLKADOT_SUBSTRATE_RPC_URL=wss://mycustomnode.com polkascan-ui

For a full list of URL's in use, see the Dockerfile (look for 'Runtime environment variables').

Build manually

These are the instructions for a manual build. You need Yarn for this. If you already have Node/NPM installed, you can install Yarn globally with NPM:

sudo npm -g i yarn

You need to install and build polkadapt before you install and build the application:

cd polkadapt
yarn
yarn build
cd ..
yarn
yarn build

The build artifacts will be stored in the dist/ directory.

Development server

Make sure you have Yarn installed (see command above).

For a dev server, open a terminal and run:

cd polkadapt
yarn
yarn start

Wait for the process to stop emitting messages. It stays active and will rebuild PolkADAPT if you change a source file.

Now open a second terminal and run:

yarn
yarn start

Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

polkascan-ui's People

Contributors

wouterter avatar kriekkop avatar arjanz avatar

Watchers

James Cloos 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.