Giter Site home page Giter Site logo

casper-blockexplorer-frontend's Introduction

Blockexplorer Frontend

Here is the middleware repo for the blockexplorer app. If you want to run the whole app on your own you might need it. Please follow the README.md in the middleware repo and then use the middleware URL as MIDDLEWARE_URL env variable.

Setup

Docker and Docker Compose must be set and running before the following steps:

  1. Create a .env file in the root of the project.

Example:

MIDDLEWARE_URL=http://localhost:4000 # Middleware URL, by default it is http://localhost:4000/rpc
DEFAULT_PAGINATION=10 # The page size used to paginate tables

If desired, you can change the application logo / name / favicon by adding:

ORG_LOGO_URL=https://example.com/your-org-logo
ORG_LOGO_SIZE=0-100
ORG_NAME=Jenkins
ORG_FAVICON_URL=https://example.com/your-favicon
ORG_FONT_URL=https://fonts.googleapis.com/css2?family=your-font-name:wght@your-font-weights-separated-by-semi-colons&display=swap
ORG_PRIMARY_FONT_NAME=your-font-name
ORG_SECONDARY_FONT_NAME=your-font-name

You can provide some, none, or all of the colors. Similarly, you can provide light and/or dark mode.

LIGHT_THEME={
  "PRIMARY":"pink",
  "SECONDARY":"",
  "LIGHTSUPPORTING":"",
  "BOXSHADOW":"",
  "MEDIUMSUPPORTING":"",
  "DARKSUPPORTING":"",
  "MEDIUMWARNING":"",
  "LIGHTWARNING":"",
  "DARKWARNING":"",
  "SUCCESS":""
}

DARK_THEME={
  "PRIMARY":"blue"
}

  1. Run make prod-build or make dev-build if you are using the app for development purposes (HMR and debug modes will be enabled).
  2. Run make prod-start if you are using the app for production (optimized builds) or make dev-start for development.
  3. The frontend will be running at port 3000.

Testing

To run Cypress tests on the frontend:

  npm run cy:run

To open Cypress

  npm run cy:open

To run Cypress tests in Docker

  make cy-build
  make cy-test

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.