Add minimal add-in playgrounds and orchestrator

This commit is contained in:
2025-12-07 21:26:10 -06:00
parent 40bcd939ff
commit ca95d296b5
54 changed files with 13165 additions and 26764 deletions
+28
View File
@@ -0,0 +1,28 @@
# Minimal Uploader
This small utility uses environment variables in your environment (.env or other) to create a folder under a configured parent item in a drive, create a subfolder, and upload a PDF file.
Important: It expects the following environment variables to be available (use your existing .env to supply these values):
- CLIENT_ID
- CLIENT_SECRET
- TENANT_ID
- DRIVE_ID
- PARENT_ITEM_ID
Usage:
1. Ensure your environment has the required variables populated (you can copy your existing .env file into this folder or run the script from the repo root where the env is defined).
2. Install dependencies:
npm install
3. Dry-run (simulate without hitting Graph):
npm run check
4. Create folder, subfolder and upload a sample PDF (one-shot):
npm start
This script performs the operation with the app-only client credential flow (it will use the exact values from the environment variables). The uploaded PDF is a small made-up payload; all other values are read from environment variables (exact by design).