Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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.


Preview

demo


Quick Start

  1. Clone the Repository

    git clone https://github.com/aspose-cells/Aspose.Cells-for-Java.git
    cd Aspose.Cells-for-Java/Examples.GridJs.Collabrative
  2. Configure Application

    • Update src/main/resources/application.properties with your environment.
    • Ensure MySQL is installed and running.
  3. Run the Demo

    mvn spring-boot:run

    Open http://localhost:8080/gridjsdemo/list


Run the Example Locally

0. Install SQL Server

You will need a database server (e.g., MySQL). Make sure it is running before you start the application.

1. Configure Application Properties

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=mysql

2. Run the Application

Execute:

src/main/java/com/aspose/gridjsdemo/usermanagement/UserManagementApplication.java

Then open your browser and navigate to:
http://localhost:8080/gridjsdemo/list


Run with Docker

0. Configure License Path

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 file

After:

- C:/license/aspose.lic:/app/license  # optional: set Aspose license file

1. Build and Start Containers

docker-compose up --build

2. Access the App

Open your browser and go to:
http://localhost:8080/gridjsdemo/list


JavaScript/CSS Libraries Used

  • 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

Resources