Installation
Install
To run ThunderHub you first need to clone this repository.
git clone https://github.com/apotdevin/thunderhub.gitThe following commands will install all the necessary modules, build and run the app (enter into the newly created thunderhub folder first):
npm install
npm run build
npm startThis will start the server on port 3000, so just go to localhost:3000 to see the app running.
If you want to specify a different port (for example port 4000) add this env variable:
PORT=4000For PRODUCTION, if you want to reduce the space taken up by ThunderHub you can run npm prune --production after the build is completed.
Updating
There are multiple ways to update ThunderHub to it's latest version.
Commands have to be called inside the thunderhub repository folder.
1. Script Shortcut
npm run update2. Script
sh ./scripts/updateToLatest.sh3. Step by Step
git pull
npm install
npm run buildThen you can start your server:
npm run startDevelopment
If you want to develop on ThunderHub and want hot reloading when you do changes, use the following commands:
npm run devDocker
ThunderHub also provides docker images for easier deployment. Docker Hub (opens in a new tab)
To get ThunderHub running with docker follow these steps:
docker pull apotdevin/thunderhub:v0.11.1(Or the latest version you find)docker run --rm -it -p 3000:3000/tcp apotdevin/thunderhub:v0.5.5
You can now go to localhost:3000 to see your running instance of ThunderHub