GithubHelp home page GithubHelp logo

nicenode / test-nice-node-updater Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 29.68 MB

used to test automatic updates from a github repo (without disturbing real users)

License: MIT License

Shell 0.01% TypeScript 57.99% HTML 0.03% JavaScript 41.89% CSS 0.07% MDX 0.02%

test-nice-node-updater's Introduction

Run a node at home, the easy way.

Set up an Ethereum node in no-time on every modern computer without any technical knowledge (coming soon).

For the latest information, visit https://nicenode.xyz

Downloads Github All Releases gitpoap badge Twitter Discord Crowdin

Application Window Dark

Development

Test

Install

Install git, nodejs 18+, and npm.

Clone the repo and install dependencies:

git clone https://github.com/NiceNode/nice-node.git
cd nice-node
npm install

Starting Development

Start the app in the dev environment:

npm start

A window should pop open with NiceNode and a chrome devtools inspector running.

You may need to set environment variables locally. To do so, create a .env file at the top level with:

SENTRY_DSN=fake-token
MP_PROJECT_TOKEN=fake-token
MP_PROJECT_ENV=dev
NICENODE_ENV=development

SENTRY_DSN and MP_PROJECT_TOKEN should be fake unless testing. Contact Johns, @jgresham, if you want to test new error or event reporting code.

Packaging for Production

To package apps for the local platform:

npm run make

For a specific platform & architecture:

npm run make -- --platform=linux --arch=arm64
npm run make -- --arch=x64 --platform=darwin

arch options include: ia32, x64, armv7l, arm64, mips64el, universal

Tests

Unit tests with npm run test

End-to-end (e2e) tests

For e2e tests, we use webdriver and an electron plugin to automate testing. It requires a packaged build to complete the tests.

To run them locally, package the source first (and after making any changes to anything other than tests), then run the e2e tests with wdio

npm run make <your os and arch>
npm run wdio

Running Storybook

To run Storybook locally:

npm run storybook

Debugging ASAR and contents

npx @electron/asar extract app.asar <destfolder> can be used to determine the contents of asar

npm run package followed by mkdir outAsar and npx @electron/asar extract ./out/NiceNode-darwin-arm64/NiceNode.app/Contents/Resources/app.asar outAsar on macOS

test-nice-node-updater's People

Contributors

jgresham avatar corn-potage avatar dependabot[bot] avatar gathin23 avatar soft-boy avatar kallydev avatar gasolin avatar kamegoro avatar kayla-henrie avatar mv-kr avatar omahs avatar wtfsayo avatar xiaolou86 avatar

Watchers

 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.