Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Autodesk view and data API MongoDb Integration Sample

##Description

That sample demonstrates how to integrate MongoDb with the Autodesk View & Data API using a Node.js server and a AngularJs-based client

##Setup/Usage Instructions

  • Install Node.js
  • Run "npm install" command from the server directory
  • Replace the place holder with your own credentials in credentials.js. You need to request credentials at our developer portal
  • To work as-is with the sample, you will need a model with components having a property named "ProductId", you can use the seat.dwf model from data folder
  • Upload a model using instructions from the API documentation
  • Alternatively you can use one of our tools, for example: LMV Quick Start Guide
  • Once you have translated successfully your model, place its URN in config-client.js
  • This sample is using a sample mongodb hosted on mongolab which matches the model seat.dwf. Mongolab provides a free tier.
  • You need to change to your own mongo database if you are using different models. Go to config-server.js, replace the access information of your mongoDb, you will need to be able to connect to a mongodb database, populated with products matching the "ProductId" of your model. The required fields on a product are: {ProductId, Name, SuplierName, Description, Currency, Price}
  • Run the server: "node server.js" from command line
  • Connect to server locally using a WebGL-compatible browser: http://localhost:3000/node/mongo.

Online demo

See the live demo at: http://mongo.autodesk.io

License

That samples are licensed under the terms of the MIT License. Please see the LICENSE file for full details.

##Written by

Written by Philippe Leefsma

About

A server/client integration sample between a mongo labs database and View&Data webservice

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages