This utility app enables you to see and create new app bundles, activities and workitems - including creating new version of those and aliases for them
https://da-manager.herokuapp.com
In the top text boxes Provide the Client Id and Client Secret of the app you created on the Forge Developer Site and click Log In button
On both the AppBundles and Activities tabs you'll find a list of all the items you have on Forge. \ In case of clicking on an Alias, the infomration box on the right will show the reply coming from the Forge server. \ You'll find three buttons on the bottom left:
Whenever you use the Create button a dialog box will pop up that enables you to provide the necessary info in order to create the specific item:
When an Activity Alias is selected in the tree, the plus button will turn into a play/run button showing that you could start a Workitem based on the selected Activity
Once you started a Workitem the WorkItems tab will be activated and it will show a list of the Workitems you started during this session \ There will be two buttons available:
If you click any of the items then an update will be requested from the server and the reply will be shown in the info box
Install NodeJS.
Clone this project or download it. It's recommended to install GitHub desktop. To clone it via command line, use the following (Terminal on MacOSX/Linux, Git Shell on Windows):
git clone https://github.com/adamenagy/da.manager-nodejs
To run it, install the required packages, set the enviroment variables with your client ID & secret and finally start it. Via command line, navigate to the folder where this repository was cloned and use the following:
Mac OSX/Linux (Terminal) / Windows (use Node.js command line from Start menu)
npm install
npm start
Open the browser: http://localhost:3000.
Important: do not use npm start locally, this is intended for PRODUCTION only with HTTPS (SSL) secure cookies.
To deploy this application to Heroku, the Callback URL for Forge must use your .herokuapp.com
address. After clicking on the button below, at the Heroku Create New App page, set your Client ID, Secret and Callback URL for Forge.
Watch this video on how deploy samples to Heroku.
All Autodesk Forge NPM packages are included by default, see complete list of what's available at NPM website. OAuth, Model Derivative and OSS are used. Some other non-Autodesk packaged are used, including express and its session/cookie middlewares (express-session and cookie-parser) for user session handling. The front-end uses bootsrap and jquery.
For local development/testing, consider use nodemon package, which auto restart your node application after any modification on your code. To install it, use:
sudo npm install -g nodemon
Then, instead of npm run dev, use the following:
npm run nodemon
Which executes nodemon server.js --ignore www/, where the --ignore parameter indicates that the app should not restart if files under www folder are modified.
Documentation:
Tutorials:
Blogs:
This sample is licensed under the terms of the MIT License. Please see the LICENSE file for full details.
Adam Nagy (Forge Partner Development)
http://forge.autodesk.com