You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -23,18 +23,24 @@ Features of Sugarizer Thin Client include:
23
23
* Backup or sharing of local storage content to the Server,
24
24
* Presence and collaboration
25
25
26
-
Note: You can run sugarizer from the link above, but the Thin Client access is provided by all the Sugarizer Servers, so you can use others as well.
26
+
Note: You can run sugarizer from the link above, but the Thin Client access is provided by all the Sugarizer Servers, so you can use for your own Sugarizer Server. See below how to install your own Sugarizer Server.
27
27
28
28
# Client
29
29
30
-
Sugarizer Client is Sugarizer installed locally on the device so it does not require any access to the Server - it works stand-alone. Server access could be required only when it needs network features. Sugarizer could work on any device with a recent Chrome/Chromium version and has also been tested successfully on Firefox, Safari and IE. Sugarizer Client is available for PC, for Android, iOS, Chrome Web App and for Firefox OS devices.
30
+
Sugarizer Client is Sugarizer installed locally on the device so it does not require any access to the Server - it works stand-alone. Server access could be required only when it needs network features. Sugarizer could work on any device with a recent Chrome/Chromium version and has also been tested successfully on Firefox, Safari and IE. Sugarizer Client is available for PC, for Android, iOS and Chrome Web App.
31
31
32
-
To run Sugarizer on your PC (GNU Linux/Mac OS/Windows), launch Chrome using the command line:
32
+
To run **Sugarizer on your PC** (GNU Linux/Mac OS/Windows), launch Chrome using the command line:
33
33
34
34
chrome --allow-file-access-from-files
35
35
36
36
Then open the "index.html" file in the browser. Note that the option "--allow-file-access-from-files" is needed to authorize access to local file. Don't forget to close all other instances of Chrome before using this option. For other browser equivalent options see [here](https://github.com/mrdoob/three.js/wiki/How-to-run-things-locally"here"). Do not hesitate to write a shortcut on this command for future use.
37
37
38
+
To run **Sugarizer Client on Android**, download it on [Google Play](https://play.google.com/store/apps/details?id=org.olpc_france.sugarizer), [Amazon Store](http://www.amazon.com/gp/product/B00NKK7PZA) or [F-Droid](https://f-droid.org/repository/browse/?fdid=org.olpc_france.sugarizer). You could also build yourself the Sugarizer Client APK using instruction below.
39
+
40
+
To run **Sugarizer Client on iOS**, download it on [Apple Store](https://itunes.apple.com/us/app/sugarizer/id978495303) or build yourself the Sugarizer Client IPA using instructions below.
41
+
42
+
To run **Sugarizer Client as Chrome Web App**, download it on [Chrome Web Store](https://chrome.google.com/webstore/detail/sugarizer/omfgclgehghdlloggibhgicnlldjiboo) or use the [Chrome Apps & Extensions Developer Tool](https://chrome.google.com/webstore/detail/chrome-apps-extensions-de/ohmmkhmmmpcnpikjeljgnaoabkaalbgc) and use the Sugarizer directory as target for unpacked application.
43
+
38
44
Features of Sugarizer Client include:
39
45
40
46
* Sugar Desktop view (Radial, List and Journal),
@@ -68,14 +74,7 @@ To run your own Sugarizer Server, follow the step behind. Commands are shown fro
68
74
69
75
**Install Node.js**: Install Node.js and npm to manage packages. See [here](http://nodejs.org/"here") more information.
70
76
71
-
sudo apt-get install python g++ make checkinstall fakeroot
72
-
src=$(mktemp -d) && cd $src
73
-
wget -N http://nodejs.org/dist/node-latest.tar.gz
74
-
tar xzvf node-latest.tar.gz && cd node-v*
75
-
./configure
76
-
sudo fakeroot checkinstall -y --install=no --pkgversion $(echo $(pwd) | sed -n -re's/.+node-v(.+)$/\1/p') make -j$(($(nproc)+1)) install
77
-
sudo dpkg -i node_*
78
-
curl https://www.npmjs.org/install.sh | sudo sh
77
+
sudo apt-get install nodejs
79
78
80
79
**Install MongoDB**: Don't forget to create a /data/db directory to store databases. See [here](http://www.mongodb.org/"here") more information.
81
80
@@ -101,4 +100,106 @@ To run your own Sugarizer Server, follow the step behind. Commands are shown fro
To check your install, run "http://<server name>/sugarizer" in your browser: you should see the home with all activities. Then go to Journal view, you should see at the bottom of the screen the two icons to switch to private/shared journal.
103
+
**Check your install**: To check your install, run "http://<server name>/sugarizer" in your browser:
104
+
105
+
* you should see the home with all activities,
106
+
* go to Journal view, you should see at the bottom of the screen the two icons to switch to private/shared journal,
107
+
* go to the neighborhood view, you should seen one icon for the server and one for you.
108
+
109
+
You could also run unit tests (see below) to ensure that everything works.
110
+
111
+
# Unit testing
112
+
113
+
Sugarizer include a set of unit tests both for client side and for server side.
114
+
To run unit tests, you should first install [Mocha](http://mochajs.org/):
115
+
116
+
sudo npm install -g mocha
117
+
118
+
To run unit tests for Sugarizer Server, launch:
119
+
120
+
cd /var/www/sugarizer/server/
121
+
mocha
122
+
123
+
To run unit tests for Sugarizer Client, run "file:///var/www/sugarizer/test/index.html" in your browser.
124
+
125
+
# Supervise your Sugarizer Server
126
+
127
+
Instead of running your Sugarizer Server like described in the "Run MongoDB and Sugarizer Server" section above, you could use a tool like [supervisor](http://supervisord.org/) to run it in background.
128
+
129
+
First install, supervisor:
130
+
131
+
sudo apt-get install supervisor
132
+
133
+
Then install the wait-for-mongo node tool:
134
+
135
+
sudo npm install -g wait-for-mongo
136
+
137
+
Create a sugarizer.sh file in /home/root directory:
0 commit comments