# cad.js **Repository Path**: mirrors/cad.js ## Basic Information - **Project Name**: cad.js - **Description**: 基于 Web 的 CAD 文件查看器 创建一个开发环境 假设Mac OS X或Linux 获取代码 git clone https://github.com/ghemingway/ - **Primary Language**: JavaScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/cad-js - **GVP Project**: No ## Statistics - **Stars**: 15 - **Forks**: 6 - **Created**: 2018-01-10 - **Last Updated**: 2025-09-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README cad.js ====== Web-based CAD file viewer Setting up a development environment ==================================== *Assumes Mac OS X or Linux* Get the code ------------ git clone https://github.com/ghemingway/cad.js cd cad.js Make a place to put cad data ---------------------------- mkdir data Move models into `data` directory ([find some samples](docs/readme)). Install nodejs packages ----------------------- npm install Setup Redis ----------- Run a [redis](http://redis.io/) server and update [your config file](config/config.json#L6) to use this redis hostname/ip address and port. Create a key ------------ ssh-keygen -t rsa -f config/id_rsa run development server ---------------------- npm run start-dev Building ======== Build/compile using webpack: # if you installed webpack globally (`npm install webpack -g`) webpack # if you installed webpack via package dependencies (`npm install`) ./node_modules/.bin/webpack Snazzy Demos ============ *From an older version* http://ghemingway.github.io/cad.js/?resource_url=/cad.js/data/cutter/index.json http://ghemingway.github.io/cad.js/?resource_url=/cad.js/data/rear/index.json http://ghemingway.github.io/cad.js/?resource_url=/cad.js/data/rccar/index.json