README.md |
ThunderHub - Lightning Node Manager
To run ThunderHub you will need the following two repos cloned and running on your machine.
Backend: ThunderHub Server
Frontend: ThunderHub Client
Requirements
- Node installed
- Yarn or NPM installed
After cloning both repositories run yarn
or npm install
in both of them to get all the necessary modules installed.
ThunderHub - Server
To get the server running use the following commands
//With yarn:
yarn build
yarn start
//With npm:
npm run build
npm run start
If the server starts succesfully, you should see info [server.js]: Server ready at http://localhost:3001/
in the terminal
ThunderHub - Client
To get the React frontend running use the following commands
//With yarn:
yarn start
//With npm:
npm run start
If the frontend starts succesfully, you should see Compiled successfully! You can now view app in the browser.
in the terminal and a browser window should have opened in your browser.
For Development
If you want to develop on ThunderHub and want hot reloading when you do changes use the following commands
ThunderHub - Server
//With yarn:
yarn build:dev
// In another terminal
yarn dev
//With npm:
npm run build:dev
// In another terminal
npm run dev
ThunderHub - Client
Running the commands yarn start
or npm run start
works for development.
You can also get storybook running for quicker component development.
//With yarn:
yarn storybook
//With npm:
npm run storybook