Skip to content

Commit 5ffbbe6

Browse files
authored
Merge pull request #99 from Miamiohlibs/documentation
Documentation: document demo scripts
2 parents 985c2e9 + 8a4b2d1 commit 5ffbbe6

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

docs/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* [LibCal](setup/libcal.md)
77
* [Adobe](setup/adobe.md)
88
* [Jamf](setup/jamf.md)
9+
* [Component Demos/Tests](setup/component-demos-tests.md)
910
* [Running the App](running-the-app.md)
1011
* [Testing](testing.md)
1112
* [Usage Stats](usage-stats.md)
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
description: Interactive command-line options for dealing with parts of the app
3+
---
4+
5+
# Component Demos/Tests
6+
7+
SoftwareCheckout relies on several interlocking parts; when setting up the service, it's nice to know if one part is working before moving on to configure another. The command-line tools in the `demo` folder can be used to test different parts of the app. The demos use the same configuration files as the app.
8+
9+
## libcal.demo.js
10+
11+
On the command-line, run `node demos/libcal.demo.js`
12+
13+
This will call up a list of all the software packages and permissions groups configured in `config/appConf.js;` can select one, and the software will return a list of all the users assigned to that permissions group in LibCal. You can select how much information to return about each checkout. From most-to-least information, the format options are: Full, Compressed, Mini, Email only.
14+
15+
## adobe.demo.js
16+
17+
On the command-line, run `node demos/adobe.demo.js`
18+
19+
This will allow you to:
20+
21+
* List the Adobe permissions groups
22+
* List the users in a group
23+
* Add a user to a group
24+
* Remove a user from a group
25+
26+
## jamf.demo.js
27+
28+
On the command-line, run `node demos/jamf.demo.js`
29+
30+
This will allow you to:
31+
32+
* List the Jamf permissions groups
33+
* List the users in a group
34+
* Add a user to a group
35+
* Remove a user from a group
36+
37+
## email.demo.js
38+
39+
On the command-line, run `node demos/email.demo.js`
40+
41+
You can use this if you have set `emailConverter.active: true` in `config/appConf.js` and configured the emailConverter API details (with or without a database setup) to look up the authoritative email address the system will use for your users. This can be an easy way to interact with your email database.
42+
43+
This will allow you to:
44+
45+
* Get unique email for user 
46+
* Get all emails from the database
47+
* Add an alias/unique Email pair to the database
48+
* Delete an alias/unique Email pair from the database

0 commit comments

Comments
 (0)