Skip to content

Commit 6eae151

Browse files
authored
Merge pull request #327 from adafruit/rework
Simplification and rebuild of the webide
2 parents d0accd7 + 0e8927e commit 6eae151

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+4937
-1818
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
node_modules
44
repositories
5-
users.db
5+
database/webide_data_store
66

77
/editor.tar.gz
88
__MACOSX

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
language: node_js
22
node_js:
3-
- 0.8
4-
- 0.6
3+
- 4.8.2

README.md

Lines changed: 19 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
Adafruit webIDE
22
================
3-
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.
3+
This is a simple editor designed to help learn the Raspberry Pi and Beaglebone components, and more. This editor is designed solely for use on your secure private network as of now.
44

55
Debian Installation (Raspberry Pi and BeagleBone Black)
66
============
77

8+
The WebIDE installer is currently targeting Debian Stretch (latest Raspbian) installations only.
9+
810
On the Raspberry PI or BeagleBone Black (after expanding the file system):
911

10-
curl https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/alpha/scripts/install.sh | sudo sh
12+
curl https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/master/scripts/install.sh | sudo sh
1113

1214
Alternatively, you can install using the .deb file:
1315

@@ -21,57 +23,24 @@ If you don't need these features, feel free to manually install the editor below
2123

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

24-
Angstrom Installation (BeagleBone Black)
25-
============
26-
27-
On the Beaglebone (as the default root user), execute each line independently:
28-
29-
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
30-
curl -k https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/alpha/scripts/install-angstrom.sh | sh
31-
32-
Note: The curl -k command is used due to the Beaglebone not having the github SSL certificate in the default installation.
33-
34-
Note: If you've replaced the default operating system (Angstrom) with Debian or Ubuntu, use the Raspberry Pi installation instructions.
35-
36-
Manual Installation (without process monitor)
26+
Manual Installation
3727
============
3828

39-
On the Raspberry PI:
40-
41-
sudo apt-get update && sudo apt-get -y install build-essential nodejs nodejs-legacy npm redis-server git
42-
git clone git://github.com/adafruit/Adafruit-WebIDE.git
43-
cd Adafruit-WebIDE
44-
mkdir tmp
45-
npm config set tmp tmp
46-
npm install
47-
editor config/config.js (change port 80 to your port of choice)
48-
nodejs server.js
49-
50-
You can look at the install.sh script if you'd like a process monitor, and to install it
51-
as a daemon.
29+
Follow along in the [installation script][1] and pick and choose
30+
the components you'd like to install.
5231

5332
Uninstallation
5433
============
5534

5635
Debian (Raspberry PI and BeagleBone Black):
5736

58-
curl https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/alpha/scripts/uninstall.sh | sudo sh
59-
60-
Or if you installed with the .deb file:
61-
62-
sudo apt-get remove adafruitwebide
63-
64-
Angstrom (BeagleBone Black, as default root user):
65-
66-
curl -k https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/alpha/scripts/uninstall-angstrom.sh | sh
37+
curl https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/master/scripts/uninstall.sh | sudo sh
6738

6839
Manual Uninstallation
6940
============
7041

71-
On the Raspberry PI or BeagleBone Black:
72-
73-
rm -r Adafruit-WebIDE
74-
rm ~/.ssh/id_rsa_bitbucket*
42+
Follow along in the [uninstallation script][2] and pick and choose
43+
the components you'd like to remove.
7544

7645
Running the Editor
7746
============
@@ -80,7 +49,7 @@ Using Firefox or Chrome (and likely any other webkit browser) on any computer in
8049

8150
Raspberry Pi:
8251

83-
http://raspberrypi.local
52+
http://raspberrypi.local:8080
8453

8554
BeagleBone:
8655

@@ -91,35 +60,17 @@ Restart the Editor
9160

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

94-
sudo service adafruit-webide.sh stop
95-
sudo service adafruit-webide.sh start
63+
sudo systemctl restart adafruit-webide
64+
sudo systemctl start adafruit-webide
9665

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

99-
Advanced Options
68+
Status or Logs for the Editor
10069
============
10170

102-
Offline Mode Installation:
103-
104-
curl https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/alpha/scripts/install.sh | sudo sh -s - --offline
105-
106-
Note: Offline mode does not setup git in any way other than installing it. You'll want to git config your
107-
email and name, and setup your ssh keys.
108-
109-
GitHub Mode Installation:
110-
111-
curl https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/alpha/scripts/install.sh | sudo sh -s - --github
71+
sudo systemctl status adafruit-webide
11272

113-
Note: GitHub mode does not automatically create, and post an ssh key to your GitHub account. It requires
114-
a bit more manual setup at this time.
115-
116-
Enable support for Makefiles (execute on the Pi in the terminal, post-installation):
117-
118-
redis-cli hmset editor:settings enable_make "on"
119-
120-
Disable:
121-
122-
redis-cli hmset editor:settings enable_make "off"
73+
Logs are in syslog: /var/log/syslog
12374

12475
License
12576
============
@@ -130,3 +81,6 @@ http://www.gnu.org/licenses/agpl-3.0.html
13081
SCREENSHOTS
13182
===========
13283
![ScreenShot](http://www.adafruit.com/adablog/wp-content/uploads/2012/10/WebIDE_Alpha.jpg)
84+
85+
[1]: https://github.com/adafruit/Adafruit-WebIDE/blob/master/scripts/install.sh
86+
[2]: https://github.com/adafruit/Adafruit-WebIDE/blob/master/scripts/uninstall.sh

bin/node_hf/node

-1.1 MB
Binary file not shown.

bin/node_hf/version.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/node_sf/node

-8.27 MB
Binary file not shown.

bin/node_sf/version.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

config/README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,16 @@ Welcome to the Adafruit webIDE.
22

33
We've pre-loaded the Adafruit Python libraries that you may find useful.
44

5-
By navigating into those libraries, you can choose to copy them into your
6-
project folder, so you can edit, and save them. If you ever need to start
7-
over, just delete your copied project folder, and grab the
5+
By navigating into those libraries, you can choose to copy them into your
6+
project folder, so you can edit, and save them. If you ever need to start
7+
over, just delete your copied project folder, and grab the
88
Adafruit libraries again.
99

10-
We've also created a folder you can start putting your projects into. This
11-
is a version-controlled repository stored in your Bitbucket account.
12-
Whenever you create projects and files within this folder, they will be
13-
versioned and saved at Bitbucket.
10+
We've also created a folder you can start putting your projects into.
1411

15-
This file was pre-loaded in your projects folder, and is located in the
12+
This file was pre-loaded in your projects folder, and is located in the
1613
'my-pi-projects' link to the left.
1714

1815
We have usage information, installation instructions and various
19-
other information you may find useful at the Adafruit Learning System:
16+
other information you may find useful at the Adafruit Learning System:
2017
http://learn.adafruit.com/webide

config/config.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
//Change offline in /config.
44
//Change github in /config.
55
exports.editor = {
6-
"port": 80,
7-
"version": "0.3.12",
8-
"version_url": "https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/alpha/release/version.txt",
9-
"offline": false,
10-
"github": false
6+
"port": 3000,
7+
"version": "0.7.0",
8+
"version_url": "https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/rework/release/version.txt"
119
};
1210

1311
exports.adafruit = {

0 commit comments

Comments
 (0)