...
*This section is copied verbatim from Quickstart (the one for the original KRE system)
Getting started with KRL can be a big leap because there are so many things that are different about programming in KRL:
...
Prerequisite: you will need to install node (also known as Node.js) on your machine. It includes npm, the node package manager.
- clone from the repository at https://github.com/Picolab/node-pico-engine
- change into the folder named "node-pico-engine"
- run the command `npm install`
- choose a port number for the web server which the pico-engine implements (the default is 8080)
- start the pico-engine web server, using say `PORT=8084 npm start` to select port 8084
...
Code Block |
---|
$ npm install -g pico-engine
$ PORT=8084 pico-engine
http://localhost:8084 |
In the example above, port number 8084 was chosen. By default, if you run the command `pico-engine` without setting the environment variable, port 8080 will be used.
Note that the web server displays the URL of its document root, ex. "http://localhost:8084" and then continues to run. As we will see later, messages will be logged to this console.
Create a Pico
Visit the default web page of your web server. As this page loads, it will perform a bootstrap sequence, which creates a Pico, known as "Owner Pico" and then registers and installs two rulesets.
...