https://github.com/agentgill/excel-file-upload-lwc
Read & Parse Excel documents with sheetjs and LWC natively or send to an Heroku app for parsing.
https://github.com/agentgill/excel-file-upload-lwc
express fetch heroku javascript lwc lwc-heroku nodejs sheetjs
Last synced: 2 months ago
JSON representation
Read & Parse Excel documents with sheetjs and LWC natively or send to an Heroku app for parsing.
- Host: GitHub
- URL: https://github.com/agentgill/excel-file-upload-lwc
- Owner: agentgill
- Created: 2021-10-10T09:36:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-26T08:42:49.000Z (over 3 years ago)
- Last Synced: 2025-01-18T13:38:36.538Z (4 months ago)
- Topics: express, fetch, heroku, javascript, lwc, lwc-heroku, nodejs, sheetjs
- Language: JavaScript
- Homepage:
- Size: 628 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Excel File Upload
Sample application for uploading and parsing Excel documents using "sheetjs" natively with LWC and an alternative solution using Heroku App for nodejs/express based parsing.
Note - You need to update any Heroku URLS to match your own Heroku Apps i.e. https://radiant-hamlet-82916.herokuapp.com
## Resources
- [SheetJS](https://sheetjs.com/)
- [xlsx](https://www.npmjs.com/package/xlsx)
- [Heroku](https://heroku.com/)
- [SalesforceLabs - ExcelUpload](https://github.com/SalesforceLabs/ExcelUpload)
- [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)## excelToJsonStatic LWC
Simple LWC with file upload which uses "sheetjs" static resource for parsng (based on ExcelUpload repo). Parses uploaded excel document and returns JSON.
## excelToJson LWC
Simple LWC with file upload and send to Heroku App based on Fetch API. POST to endpont on Heroku for parsing and returns JSON response.
## testHeroku LWC
Simple LWC for testing callout to Heroku using Fetch API.
## Read All About It
- [Salesforce Extensions Documentation](https://developer.salesforce.com/tools/vscode/)
- [Salesforce CLI Setup Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_intro.htm)
- [Salesforce DX Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_intro.htm)
- [Salesforce CLI Command Reference](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference.htm)