Lab 0: Getting Started
- Due Jan 13, 2018 by 11:59pm
- Points 100
- Submitting a text entry box or a file upload
Objective
The objective of this lab is for you to install and run the Pico Engine.
Reading and Reference
Read the following:
- Persistent Compute Objects Links to an external site.
- Pico Engine Quickstart Links to an external site.
You may find the following resources useful:
Prerequisites
You will need the following:
- GitHub (or similar), AWS Account, or Web server you control for hosting rulesets
- Node.js version 6 or greater with NPM
- Laptop, AWS account, or other system capable of running NodeJS
Implementation Notes
- The best way to use the KRL documentation is to search since you may not always appreciate how it's organized (or isn't).
- People often can't get their ruleset to run because it doesn't parse. Make sure you always parse your ruleset before checking it into whatever system you're using to store it (probably GitHub).
- If your changes don't seem to take effect, the most common cause is likely that GitHub's internal caching is returning the old ruleset even though you've checked in changes. Try waiting 5 minutes, refreshing, and trying again. Alternatively, GitLab Links to an external site. should give you fewer caching problems. (raw urls to code in private repositories will need an account access token)
Do This
- Install the Pico Engine on the system of your choice. (As a reminder, the installation instructions are found in the quickstart guide given above)
- Copy the hello_world ruleset from the Quickstart into a resource that is accessible from a URL (can be a local URL using the
file:
schema). - Using one of the methods in Parsing Rulesets
Links to an external site., validate your ruleset.
- Change the KRL so that it's not properly formatted.
- Reparse it and note the error.
- Fix the problem.
- Install the ruleset at the URL you used in step (2) in your pico.
- Delete the ruleset you installed above.
Deliverables
Turn in the following:
- Short screencast (< 3 minutes with sound) showing your pico engine installation.
- Answers to the following questions:
- What is the URL of your hello_world ruleset.
- What happened when you parsed the improperly formatted ruleset? What error did you see?
- What port was your pico engine running on?