https://github.com/botman/web-widget
https://github.com/botman/web-widget
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/botman/web-widget
- Owner: botman
- License: mit
- Created: 2018-03-05T16:50:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-09-03T23:11:41.000Z (almost 6 years ago)
- Last Synced: 2025-05-07T20:36:34.403Z (about 1 year ago)
- Language: TypeScript
- Size: 204 KB
- Stars: 39
- Watchers: 10
- Forks: 68
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# BotMan Web Widget
## Install requirements
### Install nodejs
```
apt-get install build-essential libssl-dev
apt-get install nodejs
nodejs -v
apt-get install npm
npm -v
```
### Install nvm
To download the nvm installation script from the project's GitHub page, you can use curl. Note that the version number may differ from what is highlighted here:
```
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh -o install_nvm.sh
```
Inspect the installation script with nano:
```
nano install_nvm.sh
```
Run the script with bash:
```
bash install_nvm.sh
```
It will install the software into a subdirectory of your home directory at ~/.nvm. It will also add the necessary lines to your ~/.profile file to use the file.
To gain access to the nvm functionality, you'll need to either log out and log back in again or source the ~/.profile file so that your current session knows about the changes:
```
source ~/.profile
```
With nvm installed, you can install isolated Node.js versions. For information about the versions of Node.js that are available, type:
```
nvm ls-remote
```
Then you can use nvm to install the node version you need
```
nvm use
```
### On Mac via homebrew:
```
brew install npm
brew install nvm
```
## Build the widget
```
cd
npm install -g grunt-cli
npm install -g webpack
npm install -g bower
npm install -g gulp
npm install preact
npm install
npm run-script build
```