# README
Demo data seed
Creates dummy lists and feeds random data into them.
Prerequisites
- SharePoint Online tenant
- SharePoint Online Addn-Only auth credentials
- Go 1.19+
Run provisioning
On a Mac/Linux machine, run the following command:
SP_SITE_URL="https://contoso.sharepoint.com/sites/site" go run ./cmd/seed/...
On a Windows machine, run the following command:
$env:SP_SITE_URL="https://contoso.sharepoint.com/sites/site"
go run ./cmd/seed/...
If you are using On-Premise SharePoint with NTLM authentication, modify
./cmd/demo/main.go
to usentlm
auth provider.
It should create lists and feed bunch of random data.
The process takes time due to the number of seeding items. Amend ./cmd/demo/main.go
to reduce or increase the number of items.
If you see progress drammatically slowing dow or stuck, reduce concurrency as you face SharePoint API throttling.
# Functions
DropList deletes a list by title.
EnsureList ensures list existence, returns true if list was created.
EnsureListField ensures list field existence, returns true if field was created.