Skip to content

This repository contains a complete sample demonstrating how to integrate the Syncfusion React Spreadsheet component with an ASP.NET Core Web API deployed to AWS Lambda. It showcases how to open and save Excel files using serverless endpoints for seamless cloud-based spreadsheet management.

Notifications You must be signed in to change notification settings

SyncfusionExamples/syncfusion-react-spreadsheet-aws-lambda-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Syncfusion React Spreadsheet + Aws Lambda Integration

This repository contains a complete sample demonstrating how to integrate the Syncfusion React Spreadsheet component with an ASP.NET Core Web API deployed to AWS Lambda. It showcases how to open and save Excel files using serverless endpoints for seamless cloud-based spreadsheet management.

๐Ÿ”— Live Demo

๐Ÿ“ Project Structure

โ”œโ”€โ”€ client/       # React app with Syncfusion Spreadsheet
โ””โ”€โ”€ server/       # ASP.NET Core Web API project

โœจ Features

  • Open Excel files via Lambda-hosted endpoint
  • Save edited spreadsheets back to local system
  • Serverless, scalable, and secure integration

๐Ÿงฉ Technologies Used

  • React + Syncfusion Spreadsheet
  • ASP.NET Core Web API
  • AWS Lambda Function

๐Ÿš€ Getting Started

  1. Clone the Repository

    git clone https://github.com/SyncfusionExamples/syncfusion-react-spreadsheet-aws-lambda-integration
  2. Configure and Deploy ASP.NET Core Web API to AWS Lambda

    Follow the steps in our documentation or blog post.

    Documentation Link for Open: Open an excel file using a hosted web service in AWS Lambda

    Documentation Link for Save: Save an excel file using a hosted web service in AWS Lambda

    • Install AWS Toolkit in Visual Studio
    • Add Amazon.Lambda.AspNetCoreServer.Hosting NuGet package
    • Configure Program.cs and .csproj for Lambda
    • Publish to AWS Lambda
    • Create and deploy API Gateway for open/save endpoints
  3. Update React Client

    In index.js, update the openUrl and saveUrl with your deployed API Gateway endpoints:

    <SpreadsheetComponent
      openUrl="https://your-api-url.amazonaws.com/{your_deployed_stage_Name}/api/spreadsheet/open"
      saveUrl="https://your-api-url.amazonaws.com/{your_deployed_stage_Name}/api/spreadsheet/save"
    />
  4. Setup the Client

    cd client
    npm install
    npm start
  5. Run the Server

    Run the project and test the endpoints directly from the React app

    dotnet run

๐Ÿ“„ Key Files

  • SpreadsheetController.cs: Handles open/save logic in ASP.NET Core
  • index.js: React component with Syncfusion Spreadsheet integration
  • Program.cs: Configured for AWS Lambda hosting

๐Ÿ”— Resources

โœ… Benefits

  • Serverless execution with AWS Lambda
  • Auto-scaling and cost-efficient
  • Secure integration via API Gateway and IAM
  • Cloud-native spreadsheet workflow

๐Ÿ“ฃ Try It Out

Clone the repo, deploy the backend, and run the React app to experience seamless Excel file handling in the cloud!

๐Ÿ“„ License and copyright

This is a commercial product and requires a paid license for possession or use. Syncfusionยฎ licensed software, including this control, is subject to the terms and conditions of Syncfusionยฎ EULA. To acquire a license for 140+ JavaScript UI controls, you can purchase or start a free 30-day trial.

A free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.

See LICENSE FILE for more info.

About

This repository contains a complete sample demonstrating how to integrate the Syncfusion React Spreadsheet component with an ASP.NET Core Web API deployed to AWS Lambda. It showcases how to open and save Excel files using serverless endpoints for seamless cloud-based spreadsheet management.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •