Giter Club home page Giter Club logo

make-art's Introduction

Make Art

Build Status Deployment Status

App for learning programming using a basic CoffeeScript drawing API

Screenshot of the App

You can try the app here »

Setup

git clone [email protected]:KanoComputing/make-art.git
cd make-art
yarn

Build

Build the app before running it

  • yarn build
  • yarn build:web --env=production

Run

  • yarn serve

Open your browser at http://localhost:4000

Develop

Run the watch script when developing

  • yarn watch

Offline

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
  1. Install GPG key

sudo wget -qO - https://packagecloud.io/headmelted/codebuilds/gpgkey | sudo apt-key add -;

  1. 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".

  1. 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".

  1. 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

Runbooks

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.