A ready-made template for developing CAD models using CadQuery in Codespaces, a cloud-based developer environment.
This basic template doesn't yet have all the bells and whistles - it's just the minimum to get you started quickly. In the future, it might also support GitHub Actions integration for auto-compiling CAD files.
- Create a new repository from this template repo by clicking Use this template
- Create a codespace in that new repository (docs)
- Your codespace will be automatically configured with Python, CadQuery, and cadquery-server for previewing models
- Run
cq-server run
in a terminal or run the Start CadQuery Server task in VSCode - The preview server will be available on port
5000
by default. You can open this in your browser or directly inside VSCode by clicking the preview icon in the CadQuery row in the Ports tab in the bottom panel - Simply create your model using
box.py
as a template. The rendered output will automatically update upon save (enable autosave for totally automatic reloading). You can rename the file - just make sure to keep thefrom cq_server.ui import ui, show_object
import and theshow_object
call at the end