Product Page | Docs | API Reference | Demos | Blog | Code Samples | Free Support | Temporary License | EULA
Try our free online apps demonstrating some of the most popular Aspose.Cells functionality.
Aspose.Cells.GridJs for Java is a lightweight, scalable, and customizable toolkit that provides cross-platform web applications. It enables developers to easily build Excel/Spreadsheet editors or viewers for the web with collaborative features, simple deployment, and easy-to-use APIs.
This repository contains a demo project showing how to implement a Spreadsheet Editor in collaborative mode using GridJs.
-
Clone the Repository
git clone https://github.com/aspose-cells/Aspose.Cells-for-Java.git cd Aspose.Cells-for-Java/Examples.GridJs.Collabrative -
Configure Application
- Update
src/main/resources/application.propertieswith your environment. - Ensure MySQL is installed and running.
- Update
-
Run the Demo
mvn spring-boot:run
You will need a database server (e.g., MySQL). Make sure it is running before you start the application.
Edit src/main/resources/application.properties according to your environment:
# Directory containing spreadsheet files
testconfig.ListDir=/app/wb
# Directory for storing cache files
testconfig.CachePath=/app/grid_cache
# Aspose.Cells license file
testconfig.AsposeLicensePath=/app/license
# Enable collaborative mode
gridjs.iscollabrative=true
# Database connection (example: MySQL)
spring.datasource.url=jdbc:mysql://localhost:3306/gridjsdemodb?createDatabaseIfNotExist=true&useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Jakarta&useSSL=false
spring.datasource.username=root
spring.datasource.password=root
spring.sql.init.platform=mysqlExecute:
src/main/java/com/aspose/gridjsdemo/usermanagement/UserManagementApplication.java
Then open your browser and navigate to:
http://localhost:8080/gridjsdemo/list
In docker-compose.yml (line 10), set the correct path to your license file.
Example: If your license file is at C:/license/aspose.lic
Before:
- D:/release/license/Aspose.Cells.lic:/app/license # optional: set Aspose license fileAfter:
- C:/license/aspose.lic:/app/license # optional: set Aspose license filedocker-compose up --buildOpen your browser and go to:
http://localhost:8080/gridjsdemo/list
- jquery.js v2.1.1
- jquery-ui.js v1.12.1
- jquery-ui.css v1.12.1
- jszip.min.js v3.6.0
- bootstrap.css v22.5.5.2
- quantumui.css v22.5.5.2
- Website: www.aspose.com
- Product Home: Aspose.Cells for Java
- Download: Download Aspose.Cells for Java
- Documentation: Aspose.Cells for Java Documentation
- Forum: Aspose.Cells for Java Forum
- Blog: Aspose.Cells for Java Blog
