You'll find everything you need to learn and implement a Reveal SDK application (both client and server) in this organization. This documents includes the general over of Reveal, links to source code for getting started samples, links to product documentation, support and video training.
Find the server (Node, .NET Core, Java) in the corresponding /server folders in this repo.
The essential dependencies for a .NET Core application using Reveal are the Reveal NuGet package and the SQL Server dependency.
Reveal is integrated into a .NET Core or NodeJS application via NuGet packages for .NET or an NPM package for NodeJS. Dependency injection is configured to include Reveal services. Here’s the setup in Program.cs
:
builder.Services.AddControllers().AddReveal(builder =>
{
builder
.AddAuthenticationProvider<AuthenticationProvider>()
.AddDataSourceProvider<DataSourceProvider>()
.AddUserContextProvider<UserContextProvider>()
.AddObjectFilter<ObjectFilterProvider>()
.DataSources.RegisterPostgreSQL();
});
or in TypeScript / JavaScript in your app.ts / main.js:
const revealOptions: RevealOptions = {
userContextProvider: userContextProvider,
authenticationProvider: authenticationProvider,
dataSourceProvider: dataSourceProvider,
dataSourceItemProvider: dataSourceItemProvider,
dataSourceItemFilter: dataSourceItemFilter,
dashboardProvider: dashboardProvider,
dashboardStorageProvider: dashboardStorageProvider
}
app.use('/', reveal(revealOptions));
In this setup:
- AddReveal Configuration: Registers essential services like
AuthenticationProvider
andDataSourceProvider
, while including optional configurations such asUserContextProvider
,ObjectFilterProvider
, andDashboardProvider
as needed. - Data Sources: Registers the Postgres SQL connector, which is necessary for Postgres integrations in .NET Core. For NodeJS, you are not required to install / register the Postgres SQL connector separately.
Authentication is handled by implementing the IRVAuthenticationProvider
. A username and password credential are created, and the connection details are stored in the data source provider.
- Authentication: Detailed documentation on setting up authentication.
The DataSourceProvider
specifies the location of the database, including host, database name, schema, and port. This information can be retrieved from various sources, such as app settings, Azure Key Vault, or configuration files. The example uses app settings to store these details.
- Data Source / Data Source Items: Guidance on setting up and managing data sources.
Custom data source items can be created, such as parameterized queries and stored procedures. These items are defined in the DataSourceProvider
and are made accessible to users through a dialog.
- Custom Queries: Steps for adding custom queries to data sources.
The ObjectFilter
controls the data access permissions for users. It has a Filter
function that can be customized to restrict data visibility based on user roles or other criteria. The example demonstrates a scenario where users with the "user" role can only access "All Orders" and "Invoices" data.
- Object Filter: Examples of filtering data objects.
The UserContext
provides information about the logged-in user. It can be used to store default properties like UserID
or other custom properties defined in the UserContextProvider
. The GetUserContext
method is used to retrieve the user context.
- User Context: Explanation of how to utilize the user context.
The DashboardProvider
enables customization of dashboard saving behavior. It can be used to determine the save location based on the user's context, like saving to different folders or databases.
The HTML client requires three dependencies: jQuery, JS, and the Reveal JavaScript library. These can be accessed locally or through a CDN. The client code specifies the server URL and a callback function that handles user interaction.
Dashboards are loaded using the LoadDashboard
function, which takes the name of the dashboard file as a parameter. In HTML clients, a selector is used to specify where the dashboard should be rendered.
The SetAdditionalHeadersProvider
API allows passing custom headers to the server. These headers can contain information like customer ID or other relevant details.
- SetAdditionalHeadersProvider: Documentation on using this API for custom headers.
In Reveal, you can customize the menu that appears on specific visualizations using the onMenuOpening
event. This can be especially useful for adding custom actions directly accessible to users from visualizations.
- Custom Menu Items: Instructions for adding custom menu items to visualizations.
The Reveal.SDK.DOM
library, currently in beta, provides a typed view of dashboards. It allows easy access to dashboard properties, such as file name and title.
- Reveal SDK DOM: Library for accessing dashboard properties.
The dashboard title displayed to the user can differ from the underlying file name. The DashboardsThumbnail
and DashboardsNames
APIs are used to retrieve both the title and file name, ensuring consistency in user experience.
Explore these video resources to help you set up and configure Reveal BI for .NET and SQL Server, just change the type to Postgres SQL in each function to map to Postgres SQL:
- Setting Up a .NET Core Server with Reveal BI: Quick & Easy Guide
- Configuring SQL Server in a .NET Core Server in Reveal BI
- Leveraging SQL Server Stored Procedures and Parameters in Reveal BI
- Configuring Row Level Security with UserContext in Reveal BI
For a comprehensive learning path, check out the .NET Core Track Playlist:
https://youtube.com/playlist?list=PLprTqzVaLDG8TSd0nIwgmAkwIF0xkJRI7&si=-TvFdEN4vNzeFfRP
A trial license key is valid for 30 days and can be extended upon request. When a license is purchased, the key is valid for the duration of the contract. It's important to keep track of the license expiry date to avoid disruptions. The license key can be set in code, configuration files, or the home directory.
The following resources are available to help with the PoC:
- Documentation: Comprehensive documentation covering installation, licensing, and various features.
- GitHub: The Reveal BI GitHub repository contains SDK samples, issue tracking for bug reports and feature requests, and discussions for community support.
- Support via Discord Channel: A Discord channel dedicated to Reveal provides direct interaction with the product team.
- Support via GitHub Discussions: A GitHub channel dedicated to Reveal provides direct interaction with the product team. Usually, you'd use this if you can't access Discord due to corporate policy.
- YouTube Channel: Webinars and videos covering various aspects of Reveal are available on the YouTube channel.
- JavaScript API: Reveal offers a comprehensive JavaScript API that allows customization of almost every aspect of the dashboard, including visualization chooser, editing modes, and adding custom elements.
- Developer Playground: An interactive playground to experiment with Reveal BI's features.
- Add Feature Requests, Bug Reports, or Review Open Issues: Reveal's GitHub repository where you can review, add, or comment on new or existing issues.
Weekly check-in calls lasting 10-15 minutes will be scheduled to provide updates and address any challenges during the PoC.