https://github.com/garronej/semasim-gateway
https://github.com/garronej/semasim-gateway
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/garronej/semasim-gateway
- Owner: garronej
- Created: 2017-09-07T14:34:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-09-12T23:51:44.000Z (almost 5 years ago)
- Last Synced: 2025-02-05T11:19:02.195Z (4 months ago)
- Language: TypeScript
- Size: 2.23 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# semasim-gateway
[WEBSITE](https://gw.semasim.com/)
## Installing node
NOTE: Node version used should be latest v8.
NPM_VERSION=``6.4.1``
### On armv6 hosts ( raspberry pi zero, raspberry pi 1 )
``` bash
# We can't install it from the repository so we have to download it manually:
# ( The download link is on the download page of the node.js website )
$ cd ~ && wget https://nodejs.org/dist/v8.12.0/node-v8.12.0-linux-armv6l.tar.xz
$ tar xf node-v8.*-linux-armv6l.tar.xz
# Add the path to node bin dir to the PATH, .bashrc: export PATH=/home/pi/node-v8.12.0-linux-armv6l/bin:$PATH
$ source ~/.bashrc
$ sudo su
$ npm install -g npm@NPM_VERSION
```### On any other host ( armv7, x32, x64 )
``` bash
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
$ sudo apt-get install -y nodejs
$ sudo npm install -g npm@NPM_VERSION
```## Publish release
To build, bundle and publish a new release for
a specifics arch there is no need to ``npm install && npm run copy_node`` just clone
this repo then:* run ``npm run partial_install`` ( without sudo, only first time )
* run ``npm run release`` ( without sudo )## Run local copy of the code for debugging
``` bash
$ npm install
$ sudo ./node dist/bin/installer install
$ npm start
```