A .NET-based reporting application that integrates jsreport for generating, designing, and managing reports through a web-based interface.
Follow these steps to get the application up and running:
-
Prerequisites
- Install .NET 9.0 SDK or later
- Install Node.js (automatically managed by jsreport.Binary)
- Use a modern web browser (Chrome recommended)
- Visual Studio 2022 or VS Code (optional)
-
Clone the Repository
git clone https://github.com/AltafEmpaxis/jsreport-studio-playground.git
cd jsreport-studio-playground
- First Time Setup
# Clean any existing builds
dotnet clean
# Remove existing binaries and cache (if any)
rd /s /q bin obj jsreport
# Restore packages
dotnet restore
- Build and Run
dotnet build
dotnet run
- Access the Application
- Open your web browser
- Navigate to http://localhost:5488
- The jsreport studio will start automatically
The application runs on port 5488 by default. You can change this in the jsreport.config.json
file if needed.
<PackageReference Include="jsreport.Binary" Version="3.8.0" />
<PackageReference Include="jsreport.Local" Version="3.8.2" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.1" />
jsreport-studio-playground/
├── Program.cs # Main application entry point
├── JsReportStudio.csproj # Project file with dependencies
├── jsreport.config.json # jsreport configuration
└── jsreport/ # Report templates and assets directory (auto-generated)
└── data/ # Stored templates and data
The application uses jsreport.config.json
for configuration:
{
"httpPort": 5488,
"allowLocalFilesAccess": true,
"store": {
"provider": "fs"
},
"extensions": {
"authentication": {
"enabled": false,
"admin": {
"username": "admin",
"password": "password"
}
},
"sample-template": {
"createSamples": true
}
}
}
To use a different port:
- Update the
httpPort
injsreport.config.json
:
{
"httpPort": YOUR_PORT_NUMBER,
...
}
- Or set it through environment variable:
set JSREPORT_PORT=YOUR_PORT_NUMBER
dotnet run
- Web-based template designer
- Multiple output formats (PDF, Excel, Word, HTML)
- Asset management
- Sample templates included
- File-based storage
- No authentication required (by default)
- Visual Studio 2022 or VS Code
- .NET 9.0 SDK
- Git
- Node.js
- Open the solution in Visual Studio
- Set breakpoints in
Program.cs
- Press F5 to start debugging
- Install C# extension
- Open the folder
- Use the
.vscode/launch.json
for debugging configuration
If the application doesn't start:
- Check Port
# See if port 5488 is in use
netstat -ano | findstr :5488
- Kill Existing Process
# If port is in use, kill the process
taskkill /F /IM jsreport.exe
taskkill /F /IM node.exe
- Fresh Start
# Clean everything and start fresh
dotnet clean
rd /s /q bin obj jsreport
dotnet restore
dotnet run
- Common Issues
- Port 5488 already in use
- Node.js not installed or wrong version
- Missing .NET SDK
- Insufficient permissions for file system access
- Repository: jsreport-studio-playground
- Clone URL:
https://github.com/AltafEmpaxis/jsreport-studio-playground.git
- Branch:
main