Skip to content

circuitpython/web-editor

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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