You are going to want to be able to have this application run in two different locations for different purposes.
- Run locally for testing and debugging
- Run on a production web server
AppServer requires Rhino 7 and Rhino.Compute. Please see the "Developing with Rhino Compute" guide for instructions. Ensure Rhino.Compute has started and is listening on http://localhost:6500
Clone this repository and install dependencies
$ git clone https://github.com/mcneel/compute.rhino3d.appserver.git
$ cd compute.rhino3d.appserver
$ npm i
- From a terminal, run:
$ npm run start
- If everything goes right, the terminal should report that it is listening on port 3000
- In your browser, navigate to http://localhost:3000/examples/ to test out the examples
- Start VS Code and open your cloned project's directory
- In VS Code's menu, click on Run->Start Debugging (or F5)
- If you'd like to run this application locally without any of the development tools you can use the following:
# uses the ./files/ directory for definitions and http://localhost:5000 as the compute server url (same as "npm run start" defined in package.json)
$ node ./src/bin/www
# or with command line arguments (same as "npm run start-args" defined in package.json)
$ node ./src/bin/www --computeUrl http://localhost:6500/