All Projects → samelhusseini → pxt-holidays

samelhusseini / pxt-holidays

Licence: MIT license
A Holiday Card sample target embedding PXT inside a React web app

Programming Languages

typescript
32286 projects
HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to pxt-holidays

pxt-maker
MakeCode target for "Maker" boards (beta)
Stars: ✭ 107 (+234.38%)
Mutual labels:  pxt, makecode
pxt-neopixel
A Neo-Pixel package for pxt-microbit
Stars: ✭ 47 (+46.88%)
Mutual labels:  pxt, makecode
Pxt
Microsoft MakeCode (PXT - Programming eXperience Toolkit)
Stars: ✭ 1,649 (+5053.13%)
Mutual labels:  pxt, makecode
ui5-webcomponents-sample-angular
UI5 Web Components Sample TODO application built with Angular.
Stars: ✭ 34 (+6.25%)
Mutual labels:  sample
ui5-webcomponents-sample-vue
UI5 Web Components Sample TODO application built with Vue.
Stars: ✭ 52 (+62.5%)
Mutual labels:  sample
btp-workflow-management-opensap
This repository contain the exercises for the openSAP course "Improve Business Processes with SAP Workflow Management."
Stars: ✭ 30 (-6.25%)
Mutual labels:  sample
sample-nodejs
Macaca test sample for Node.js
Stars: ✭ 44 (+37.5%)
Mutual labels:  sample
walletconnect-test-wallet
Test Wallet (Web)
Stars: ✭ 163 (+409.38%)
Mutual labels:  sample
pagila
PostgreSQL Sample Database
Stars: ✭ 46 (+43.75%)
Mutual labels:  sample
kmm-production-sample
This is an open-source, mobile, cross-platform application built with Kotlin Multiplatform Mobile. It's a simple RSS reader, and you can download it from the App Store and Google Play. It's been designed to demonstrate how KMM can be used in real production projects.
Stars: ✭ 1,476 (+4512.5%)
Mutual labels:  sample
ui5-cap-event-app
Showcase of SAP Cloud Application Programming Model and OData V4 with draft mode in a freestyle SAPUI5 app and an SAP Fiori elements app.
Stars: ✭ 70 (+118.75%)
Mutual labels:  sample
CosmicWorks
How to model and partition data for Cosmos DB starting with the Adventure Works database.
Stars: ✭ 53 (+65.63%)
Mutual labels:  sample
pxt-powerfunctions
MakeCode extension for controlling your LEGO Power Functions devices with an IR-emitting LED
Stars: ✭ 44 (+37.5%)
Mutual labels:  makecode
electron-webpack-sample
Sample of Electron & Webpack working together 💜
Stars: ✭ 31 (-3.12%)
Mutual labels:  sample
velero-plugin-example
Example project for plugins for Velero, a Kubernetes disaster recovery utility
Stars: ✭ 45 (+40.63%)
Mutual labels:  sample
play-scala-fileupload-example
An example Play application showing custom multiform fileupload in Scala
Stars: ✭ 29 (-9.37%)
Mutual labels:  sample
cytrone
CyTrONE: Integrated Cybersecurity Training Framework
Stars: ✭ 72 (+125%)
Mutual labels:  integrated
abap-platform-jak
The JSON ABAP Konverter
Stars: ✭ 16 (-50%)
Mutual labels:  sample
amazon-qldb-dmv-sample-java
A DMV based example application which demonstrates best-practices for using QLDB & the QLDB Driver for Java.
Stars: ✭ 26 (-18.75%)
Mutual labels:  sample
cloud-workflow-samples
Workflow sample projects as reference content. Users can download and import the content of this project to their tenant to understand and learn how to consume workflow.
Stars: ✭ 52 (+62.5%)
Mutual labels:  sample

A "Holiday Card" target for a Microsoft MakeCode Editor

This repo contains a "Holiday card" target built with Microsoft MakeCode (PXT). The editor is hosted on the GitHub pages at https://samelhusseini.github.io/pxt-holidays/controller.html

The repo serves as a demonstration to anyone trying to integrate PXT into their own application without using the PXT frontend.

Using the "editor controller" mode of PXT, you can embed PXT inside an iframe in your application and send and receive messages query project state and control PXT using a pre-defined protocol. The protocol for communicating with PXT in that mode is defined here: https://github.com/Microsoft/pxt/blob/master/pxteditor/editorcontroller.ts

This repo also contains a separate site built with React.js that demonstrates how to communicate with PXT. The site is built under /site. You would mostly likely not use this if you're trying to integrate PXT into your application.

If you'd like to start your own editor, create a copy of this repo and fix all the TODOs.

  • Setup local server (see below)
  • Follow these instructions to build and test the React site.
  • Update metadata in pxtarget.json. Change the id, title, name, etc... to your taste.
  • Update the JavaScript runtime in sim/simulator.ts. If needed add additional JS library under sim/public/** and edit sim/public/simulator.html with additional script tags.
  • Update the APIs in sim/api.ts to use your runtime.
  • Test your editor in the local server
  • run pgk staticpkg --gh --bump to upload a static version to GitHub pages.

Running locally

These instructions allow to run locally to modify this target.

Setup

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

  • install node.js
  • install the PXT command line
npm install -g pxt
  • install the node dependencies
npm install

Running the local server

Once you're done, simply run this command to open a local web server:

pxt serve

Normally, you would test your page from http://localhost:3232/index.html but since the editor is in "controller" mode, we would instead test it from a page were it's embedded in an iframe, use http://localhost:3232/controller.html instead.

Follow these instructions to build and test the React site.

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].