Skip to content

Repository files navigation

Toolpath DFM Template

A design-for-manufacturability application for uploading a CAD part, starting Toolpath Engine analysis, and inspecting the resulting features and mesh. Use this repository as a GitHub template to build your own Toolpath API powered product.

See https://developers.toolpath.com/ for documentation on using the Toolpath API.

Start here

  1. Create a new github repository and select Start with a template to use this repository as a base to build your own application. Selecting the Toolpath template on GitHub

  2. Install Node.js 24.18 or newer. Node.js is the program that runs this application on your computer. Download and install it from nodejs.org. Then open Terminal on macOS or Linux, or PowerShell on Windows, and run:

    node --version
    corepack enable

    The first command should show v24.18.0 or a higher version. Corepack comes with Node.js and turns on the exact version of pnpm that this project needs to install and run its files.

  3. Create your private local settings file:

    pnpm setup:local

    This creates apps/dfm/.env, a private file that stays on your computer and is not added to GitHub. It generates the session secret without displaying it and sets the standard Toolpath API URL. It also installs the application files it needs.

    This also installs the Husky pre-commit hook. It formats staged files automatically before each commit so you can have nice formatting without having to think about it.

  4. Start the application:

    pnpm dev

    Open the local address shown in the terminal, usually http://localhost:5173. You are ready when the Toolpath connection screen appears.

Development

pnpm check # Run all quality checks
pnpm test:e2e # Run playwright E2E tests
pnpm --filter @toolpath/dfm docker:build # Build DFM app docker container

The application uses released @toolpath/api, @toolpath/ui, and @toolpath/viewer NPM packages.

See the application README for architecture and request-flow details.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages