App for learning programming using a basic CoffeeScript drawing API
You can try the app here »
git clone [email protected]:KanoComputing/make-art.git
cd make-art
yarn
Build the app before running it
yarn build
yarn build:web --env=production
yarn serve
Open your browser at http://localhost:4000
Run the watch script when developing
yarn watch
To build in the offline mode for Kano OS add these ENV vars:
OFFLINE=true NODE_ENV=production gulp
Since Node JS isn't included by default on the kit and the offline backend is implemented in Python, the easiest way to debug on the kit is to build the static assets on your machine and rsync them over to the kit as follows:
rsync -av make-art "user@ip:~/make-art"
On Kano OS, go to the bin/
directory and launch the kano-draw
script
which will start the server and open a
python-webkit browser with Make
Art.
user@kano-os ~ $ cd ~/make-art/bin
user@kano-os ~ $ ./kano-draw
- Install GPG key
sudo wget -qO - https://packagecloud.io/headmelted/codebuilds/gpgkey | sudo apt-key add -;
- Add source repository
sudo nano /etc/apt/sources.list
and add ...
deb https://packagecloud.io/headmelted/codebuilds/raspbian/ jessie main
Ctrl-X, Y, enter to exit 'nano' and save the updated file.
Note it should be "jessie" even when using "stretch".
- Install VS Code (code-oss)
sudo apt-get update sudo apt-get install code-oss
Note the "sudo apt-get update" is essential. Failing to do that will result in an "E: Unable to locate package code-oss" error.
Note that "sudo apt-get update" from now on will will show entries for "packagecloud.io/headmelted/codebuilds/raspbian", and "packages.microsoft.com/repos/vscode".
- Launching VS Code (code-oss)
Under the Pi desktop start menu, under Programming, there should now be a "Code - OSS" link.
VS Code can also be launched from the command line with -
code-oss