GithubHelp home page GithubHelp logo

vepkenez / nuit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nucypher/nuit

0.0 0.0 0.0 1.55 MB

NuCypher Staking UI

License: GNU General Public License v3.0

JavaScript 94.99% HTML 0.55% CSS 4.04% Shell 0.43%

nuit's Introduction

Nuit

Official NuCypher web staking UI. This repository is currently a work-in-progress.

  yarn react-app:start
    Starts the development server.

  yarn react-app:test
    Runs the tests

  yarn react-app:build
  yarn react-app:build-production
  yarn react-app:build-staging
    Builds the app for production.

  yarn subgraph:codegen
    Generates AssemblyScript types for smart contract ABIs and the subgraph schema.

  yarn subgraph:deploy
    Deploys the subgraph to the official Graph Node.

  yarn workspace @project/react-app add <package name(s)>
    Add new libraries to main react app

Running in docker (recommended)

Note: all these commands can be run without Docker via eg: yarn react-app:start. Docker is used to reduce some of the variables between different local Node environments.

install (on first run or after dependency changes)
docker run -it -v $(pwd):/work --workdir /work -p 3000:3000  node:latest yarn install
run the dev server
docker run -it -v $(pwd):/work --workdir /work -p 3000:3000  node:latest yarn react-app:start
Build for production
# PRODUCTION
docker run -it -v $(pwd):/work --workdir /work -p 3000:3000 node:latest yarn react-app:build-production

# STAGING
docker run -it -v $(pwd):/work --workdir /work -p 3000:3000 node:latest yarn react-app:build-staging
To deploy to AWS:
  • Check that you have an .env.production file located at packages/react-app/.env.production containing:
    1. An Infura APP id for WalletConnect functionality - REACT_APP_INFURA_ID=<app ID from infura>
    2. The Public URL for the deployment - PUBLIC_URL=<URL>
  • build the app (see above)
  • Ensure you have an AWS profile configured called "nucypher", then yarn deploy
    • to deploy to staging yarn deploy
    • to deploy to production yarn deploy production

nuit's People

Contributors

vepkenez avatar kprasch avatar derekpierre avatar tuxxy 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.