Articles in this section
Category / Section

How to implement the Docker Web Service to perform open and save actions in a JavaScript Spreadsheet?

6 mins read

This article explains how to implement the Docker Web Service to perform open and save actions in a JavaScript Spreadsheet. It can be achieved by specifying the Docker Web Service hosted action link in the "openUrl" and "saveUrl" properties. 

 

Follow the steps below to implement the Docker Web Service.

 

  1. Install the Docker Desktop

https://hub.docker.com/editions/community/docker-ce-desktop-windows/

 

  1. Install .NET Core SDK version 6.0

https://dotnet.microsoft.com/en-us/download/dotnet/6.0

 

  1. Download the Docker service sample

https://www.syncfusion.com/downloads/support/directtrac/general/ze/Spreadsheet-Docker-1710751418

  1. Steps to start the service:
  1. Unzip the service sample and place it under any drive (like D:/Service)
  2. Rename the folder name to Spreadsheet-Docker
  3. Open the command prompt under (D:/Service/Spreadsheet-Docker)
  4. Type the following command to build the docker service docker build -t spreadsheet-docker.


         A screenshot of a computer

AI-generated content may be incorrect.

 

  1. Type the following command to start the service  docker run -d -p 5000:80 --name ej2service spreadsheet-docker


          A screen shot of a computer

AI-generated content may be incorrect.

 

  1. Ensure that the service is started in Docker by opening the Docker Desktop application. It looks like the following.

            A white rectangular object with a black line

AI-generated content may be incorrect.

  1. Create the spreadsheet sample to ensure the Docker service by providing the openUrl and saveUrl properties.

openUrl: 'http://localhost:5000/api/spreadsheet/open',                                                           

saveUrl: 'http://localhost:5000/api/spreadsheet/save',

 

 Refer to the working sample for additional details and implementationhttps://stackblitz.com/edit/t6ccam-rqohfu?file=index.ts

   

Output Screenshot:



    JavaScript Spreadsheet

 

Documentation:

https://ej2.syncfusion.com/documentation/spreadsheet/open-save/

 

Conclusion

We hope you enjoyed learning about how to implement the Docker Web Service in JavaScript Spreadsheet.

You can refer to our JavaScript Spreadsheet featuretour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our demo to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsBoldDesk Support, or feedback portal. We are always happy to assist you!

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied