Giter Club home page Giter Club logo

adafruit-webide's Introduction

Adafruit webIDE

This is a simple editor designed to help learn the Raspberry Pi (including the Raspberry Pi 2) and Beaglebone components, and more. This editor is designed solely for use on your secure private network as of now.

Debian Installation (Raspberry Pi and BeagleBone Black)

On the Raspberry PI or BeagleBone Black (after expanding the file system):

curl https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/alpha/scripts/install.sh | sudo sh

Alternatively, you can install using the .deb file:

curl -O https://adafruit-download.s3.amazonaws.com/adafruitwebide-0.3.12-Linux.deb
sudo dpkg -i adafruitwebide-0.3.12-Linux.deb
sudo apt-get -f install

Note: As part of the installation process, the 'webide' user is given access to sudo and sudoers, similar to the 'pi' user. This is needed in order to easily access GPIO pins from the Editor.
If you don't need these features, feel free to manually install the editor below.

Note: This is also the default installation for any Debian or Ubuntu operating systems

Angstrom Installation (BeagleBone Black)

On the Beaglebone (as the default root user), execute each line independently:

echo "nameserver 8.8.8.8" >> /etc/resolv.conf
curl -k https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/alpha/scripts/install-angstrom.sh | sh

Note: The curl -k command is used due to the Beaglebone not having the github SSL certificate in the default installation.

Note: If you've replaced the default operating system (Angstrom) with Debian or Ubuntu, use the Raspberry Pi installation instructions.

Manual Installation (without process monitor)

On the Raspberry PI:

sudo apt-get update && sudo apt-get -y install build-essential nodejs nodejs-legacy npm redis-server git
git clone git://github.com/adafruit/Adafruit-WebIDE.git
cd Adafruit-WebIDE
mkdir tmp
npm config set tmp tmp
npm install
editor config/config.js (change port 80 to your port of choice)
nodejs server.js

You can look at the install.sh script if you'd like a process monitor, and to install it as a daemon.

Uninstallation

Debian (Raspberry PI and BeagleBone Black):

curl https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/alpha/scripts/uninstall.sh | sudo sh

Or if you installed with the .deb file:

sudo apt-get remove adafruitwebide

Angstrom (BeagleBone Black, as default root user):

curl -k https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/alpha/scripts/uninstall-angstrom.sh | sh

Manual Uninstallation

On the Raspberry PI or BeagleBone Black:

rm -r Adafruit-WebIDE
rm ~/.ssh/id_rsa_bitbucket*

Running the Editor

Using Firefox or Chrome (and likely any other webkit browser) on any computer in your internal network:

Raspberry Pi:

http://raspberrypi.local

BeagleBone:

http://beaglebone.local:8080

Restart the Editor

If for any reason you need to restart the editor, you can execute the following commands in order

sudo service adafruit-webide.sh stop
sudo service adafruit-webide.sh start

Sudo is required to restart due to the editor running as the 'webide' user.

Advanced Options

Offline Mode Installation:

curl https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/alpha/scripts/install.sh | sudo sh -s - --offline

Note: Offline mode does not setup git in any way other than installing it. You'll want to git config your email and name, and setup your ssh keys.

GitHub Mode Installation:

curl https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/alpha/scripts/install.sh | sudo sh -s - --github

Note: GitHub mode does not automatically create, and post an ssh key to your GitHub account. It requires a bit more manual setup at this time.

Enable support for Makefiles (execute on the Pi in the terminal, post-installation):

redis-cli hmset editor:settings enable_make "on"

Disable:

redis-cli hmset editor:settings enable_make "off"

License

The editor is licensed with AGPL Version 3. http://www.gnu.org/licenses/agpl-3.0.html

SCREENSHOTS

ScreenShot

adafruit-webide's People

Contributors

drewrothstein avatar jwcooper avatar lastres avatar rtyley avatar toddtreece avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.