This is a fully-functional sample application written for app developers learning the Spiceworks Cloud App API. Spiceworks Cloud Apps are hosted web applications that can be embedded within any installation of Spiceworks, interacting with the data managed by Spiceworks, and adding value to the day-to-day of the millions of IT Pros who use Spiceworks.
Spiceworks Bulk Edit is an app for Spiceworks admins to make it easier to update assets in their device inventory, especially for "bulk updates" like assigning the same location to multiple assets at once. It is available in the Spiceworks App Center under the name Easy Asset Editor.
You are welcome to fork and modify this app as you please.
This is extremely simple single-page web application using not much more than jQuery and Bootstrap. The site is generated using Middleman and published on Github Pages.
A component called DataTables provides the sortable, searchable grid and multi-row updating capabilities.
You need a working Ruby environment with Bundler, and Bower installed globally. Then:
$ bundle install
$ bower install Additionally, you will need a copy of DataTables Editor, which is a paid component. Copy DataTables Editor and its Bootstrap-styling plugin to the source directory.
$ cp dataTables.editor.js source/js/vendor/_dataTables.editor.js
$ cp editor.bootstrap.js source/js/vendor/_editor.bootstrap.jsInstall the Spiceworks Developer Edition and create a new app. The name and namespace are of your choosing and doesn't necessarily need to match the hosting URL or domain you will use eventually. For the other fields, use these values for now:
| Field | Value |
|---|---|
| Full Page URL | http://localhost:4567/app.html |
| Environment | Read |
| Inventory | Write |
| Help Desk | None |
| People | Read |
| Reporting | None |
| Extended Data Access | Inventory |
| Extended Data Access | People |
Middleman runs your single-page web application, watches the filesystem for changes, and reloads your browser tab when anything changes.
$ middleman
== The Middleman is loading
== View your site at "http://localhost:4567"
In your Spiceworks Developer Edition, navigate to your app in the App nav menu.
Build the static site.
$ middleman buildPush your static site to Github Pages.
$ middleman deploy