This is Forge Responsive Connected Database: A responsive React-based web application that showcases the use of Autodesk Forge Viewer and Forge web services, working in a connected environment with integrated data from multiple databases.
This project is based on the cool React Redux Starter Kit
To run these samples, you need your own Forge API credentials:
-
Visit the Forge Developer Portal, sign up for an account
-
For this new App, you can use http://localhost:3000/api/forge/callback/oauth as Callback URL.
-
Take note of the Client ID and Client Secret, those are your API keys that must remain hidden
-
Install the latest release of NodeJS
-
Clone this or download this project. It's recommended to install a git client such as GitHub desktop or SourceTree
-
To clone it via command line, use the following (Terminal on MacOSX/Linux, Git Shell on Windows):
git clone https://github.com/Autodesk-Forge/forge-rcdb.nodejs
WORK IN PROGRESS!!
npm install # Install project dependencies
// by default post-install step will run a production build
// so for dev you need to run
npm run build-dev
npm run dev # Compile and launch
- To see your project open your browser
http://localhost:3000
For database configuration, refer to config/
Model Schema:
{
"_id" : "mongoDB Id",
"urn" : "model URN",
"name" : "Model name",
"path" : "...path of local svf for dev env ...",
"env" : "AutodeskProduction" || "Local",
"sequence" : [],
"states" : [],
"options" : {
//extensions options
},
"thumbnail" : "... base64 encoded thumbnail ... "
}
Material Schema:
{
"_id" : ObjectId("57ee6b26dfda94c109157449"),
"name" : "Steel",
"supplier" : "Autodesk",
"currency" : "USD",
"price" : 2.5
}
An export of my database records is provided in /resources/db
https://forge-rcdb.autodesk.io
Written by Philippe Leefsma
Forge Partner Development - http://forge.autodesk.com