Skip to content

runningdeveloper/circuitpython-web-editor

 
 

Repository files navigation

CircuitPython Code Editor

This is an online Code Editor that leverages Web Bluetooth to allow editing and debugging on nrf52-based devices.

A live copy of the tool is hosted here: https://code.circuitpython.org

Environment Setup

  1. Make sure NPM Version 16 is installed
  2. Copy Files from the Repo to your Web Server Root.
  3. Run npm install
  4. Run npx snowpack dev to continuously update on file changes (or npx snowpack build for one time)

Running locally as with SSL

There are 2 ways to do this.

Using devcert (No installation required)

This is a quick way to get up and running.

  1. Generate the certificates by running: npx devcert-cli generate localhost
  2. In snowpack.config.mjs, uncomment any lines with the words "cert" and "key"

Using mkcert (Installation required)

This way requires installing mkcert, but it's much easier to switch back and forth between https and http.

  1. Install mkcert on your system
  2. Generate the certificates by running: mkcert -install && mkcert -key-file snowpack.key -cert-file snowpack.crt localhost
  3. Start snowpack in secure mode by --secure to the command: npx snowpack dev --secure

About

Online web editor for CircuitPython

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 74.2%
  • SCSS 13.5%
  • HTML 12.3%