-
1Step 1
Procedure: (on ubuntu)
1. Install node.js:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs -
2Step 2
2. Install npm (node package manager):
sudo apt-get install npm
-
3Step 3
3. Install the aforementioned modules (first "cd" to you project directory)
npm install serialport
npm install socket.io @0.9.14 -
4Step 4
4. Install localtunnel
sudo apt-get install ruby ruby1.8-dev rubygems1.8 libopenssl-ruby
sudo gem install localtunnel
-
5Step 5
Running the server:
The server will run on port 8080 (you can change this in the server.js file if required)
Run server : node index.html (first cd to your project directory)
locatunnel : lt --port 8080The localtunnel will generate a subdomain for you and you can use that to access your website anywhere.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.