Coder Social home page Coder Social logo

tenrensang / prysm-web-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prysmaticlabs/prysm-web-ui

0.0 0.0 0.0 3.41 MB

Web interface for the Prysm validator

JavaScript 0.13% TypeScript 18.57% HTML 3.67% Shell 0.04% SCSS 77.58% Dockerfile 0.02%

prysm-web-ui's Introduction

PrysmWebUi

This project was generated with Angular CLI version 10.0.5.

dependencies and development environment ( current tech stack )

  1. node (latest)
  2. visual studio code
  3. visual studio code plugins - angular snippits, typescript import, TODO highlight

Running the project

Install nodejs then do

npm install

Then run the project locally on port 4200 by doing

npm start

navigate to http://localhost:4200

Environment

Environment Variables

Environment variables are injected via the environmenter service under core/services. this is key to determining some logic in the system such as with interceptors to prevent header leakage.

Develop Environment

Web UI in development mode uses mock data by default

The recommended way to run prysm web is from the validator client itself via the --web flag. If you are building the web UI from source and doing npm start, you will be using fake, mock data! Keep that in mind if you are trying to use real accounts with the web UI.

Develop URL login

for authentication in develop you may use any token in the url query parameter i.e. localhost:4200/initialize?token=anytoken

Staging Environment

run npm run start:staging will run a 'like' production build where the backend expects to be connected to localhost:7500. You will need to start the validator client with --web but interact with your angular application on localhost:4200.

Build

Run npm run build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run npm test to execute the unit tests via Karma.

Running a test watcher

Run npm run test:watch to execute the unit tests in watch mode via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Development Tips

Generating typescript protos

Run npm install

Then, do

./scripts/update-ts-pbs.sh \
    /path/to/github.com/prysmaticlabs/prysm/proto \
    /path/to/github.com/prysmaticlabs/prysm/proto/validator/accounts/v2/web_api.proto

You should see protos being regenerated under ./src/app/proto, which will be used as the types in our frontend application.

prysm-web-ui's People

Contributors

rauljordan avatar james-prysm avatar olehyev138 avatar mauser001 avatar mohamedmansour avatar wackerow avatar fredriksvantes avatar icco avatar breakabort avatar chriton avatar rkapka avatar meehow 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.