https://github.com/nucypher/nuit
NuCypher Staking UI
https://github.com/nucypher/nuit
Last synced: about 1 year ago
JSON representation
NuCypher Staking UI
- Host: GitHub
- URL: https://github.com/nucypher/nuit
- Owner: nucypher
- License: gpl-3.0
- Archived: true
- Created: 2021-03-15T19:39:32.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-06-25T18:23:02.000Z (almost 4 years ago)
- Last Synced: 2025-03-13T12:32:07.037Z (over 1 year ago)
- Language: JavaScript
- Size: 1.35 MB
- Stars: 4
- Watchers: 8
- Forks: 8
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
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:16 yarn install
```
##### run the dev server
```
docker run -it -v $(pwd):/work --workdir /work -p 3000:3000 node:16 yarn react-app:start
```
##### Build for production
```
# PRODUCTION
docker run -it -v $(pwd):/work --workdir /work -p 3000:3000 node:16 yarn react-app:build-production
# STAGING
docker run -it -v $(pwd):/work --workdir /work -p 3000:3000 node:16 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=`
2. The Public URL for the deployment - `PUBLIC_URL=`
* build the app (see above)
* Ensure you have an [AWS profile configured](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) called "nucypher", then `yarn deploy`
* to deploy to staging `yarn deploy`
* to deploy to production `yarn deploy production`