Skip to content

A template for development using CadQuery in Codespaces.

License

Notifications You must be signed in to change notification settings

iansan5653/cadquery-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cadquery-template

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.

Getting Started

  1. Create a new repository from this template repo by clicking Use this template
  2. Create a codespace in that new repository (docs)
    • Your codespace will be automatically configured with Python, CadQuery, and cadquery-server for previewing models
  3. Run cq-server run in a terminal or run the Start CadQuery Server task in VSCode
  4. 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
  5. 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 the from cq_server.ui import ui, show_object import and the show_object call at the end

About

A template for development using CadQuery in Codespaces.

Resources

License

Stars

Watchers

Forks