microsoft / pxt-sample

Sample target for PXT
https://microsoft.github.io/pxt-sample/
MIT License
84 stars 147 forks source link
makecode pxt

Sample target for a Microsoft MakeCode Editor

This repo contains a sample editor built with Microsoft MakeCode (PXT). The editor is hosted on the GitHub pages at http://microsoft.github.io/pxt-sample/

Build Status Community Discord

If you'd like to start your own editor, fork this repo and fix all the TODOs.

TODOs

Running locally

These instructions allow to run locally to modify the sample.

Setup

The following commands are a 1-time setup after synching the repo on your machine.

Running the local server

After you're done, simple run this command to open a local web server:

pxt serve

After making a change in the source, refresh the page in the browser.

Updating the tools

If you would like to pick up the latest PXT build, simply run

pxt update

More instructions at https://github.com/Microsoft/pxt#running-a-target-from-localhost