This repository has been archived by the owner on Feb 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
SITE_ID=your_site_id | ||
DRIVE_ID=your_drive_id | ||
BEARER_TOKEN=your_bearer_token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Bacom Upload | ||
|
||
This is a proof of concept project to test the upload of docx files to Sharepoint using the Graph API. | ||
|
||
## Steps | ||
|
||
1. Update the `.env` file with the required environment variables. | ||
2. Run the upload script to upload the docx files to Sharepoint. | ||
|
||
## Environment Variables | ||
Replace the following environment variables in the `.env` file: | ||
|
||
```bash | ||
SITE_ID=your_site_id | ||
DRIVE_ID=your_drive_id | ||
BEARER_TOKEN=your_bearer_token | ||
``` | ||
|
||
Use the https://developer.microsoft.com/en-us/graph/graph-explorer to get the `SITE_ID`, `DRIVE_ID`, and `BEARER_TOKEN` values. | ||
|
||
## Usage | ||
|
||
Run the upload script directly: | ||
|
||
```bash | ||
node bacom-upload/migration.js | ||
``` |