Autodesk Platform Services sample application demonstrating features relevant to the area of industrial construction.
Master branch is deployed to https://aps-industrial-construction.autodesk.io
- Node.js v10+
- APS application credentials
- MongoDB database
- for example, using the free tier of MongoDB Atlas
- or running MongoDB locally: https://docs.mongodb.com/manual/installation
- Sample data, see below
This demo expects your 3D designs stored in APS to be named in a specific way:
<facility>-<area>-<type>.nwd
Where <facility>
can be either el
or montreal
(these two names are currently hard-coded), <area>
is an arbitrary number,
and <type>
is an arbitrary word describing the type of data in the design. Here's some examples:
el-100-electrical.nwd
el-200-structural.nwd
montreal-300-electrical.nwd
montreal-400-structural.nwd
With this naming, the application is able to present a matrix of checkboxes representing individual area codes and disciplines, and load their corresponding designs on demand.
You can modify the hard-coded facilities here, and the parsing of design names here.
- clone this repository
- install dependencies:
npm install
- run server with all the required env. variables
- for example, on macOS:
export APS_CLIENT_ID=<client-id> export APS_CLIENT_SECRET=<client-secret> export APS_BUCKET=<bucket-name> export GOOGLE_MAPS_API_KEY=<api-key> export MONGODB_URL=<mongodb-connection-string> npm start
- or, when using Visual Studio Code, add this configuration to your .vscode/launch.json:
{ "type": "node", "request": "launch", "name": "Launch Express Server", "program": "${workspaceFolder}/server.js", "env": { "APS_CLIENT_ID": "<client-id>", "APS_CLIENT_SECRET": "<client-secret>", "APS_BUCKET": "<bucket-name>", "GOOGLE_MAPS_API_KEY": "<api-key>", "MONGODB_URL": "<mongodb-connection-string>" } }
- for example, on macOS:
- go to http://localhost:3000
This sample is licensed under the terms of the MIT License.
Petr Broz (@ipetrbroz), APS Developer Advocates