This guide will help you run a sample Svelte project from GitHub. It is a ready-to-use application with several live Flexmonster demos. Get the sample project to try out Flexmonster.
To integrate Flexmonster into an existing Svelte project, see integration with Svelte.
To get our sample project, download it as ZIP or clone it with the following commands:
git clone https://github.com/flexmonster/pivot-svelte.git
cd pivot-svelte
Install the npm dependencies described in package.json:
npm install
Run the sample project from the console:
npm start
To see the result, open http://localhost:5173/ in your browser.
To shut down the project from the console, press Ctrl + C (Control + C on macOS).
Take a look at the files specific to our sample project:
src/components/ — menus and toggle elements used in the sample project.src/routes/ — demos that cover different aspects of Flexmonster usage in Svelte:pivot-table-demo/+page.svelte)handling-events/+page.svelte)using-api-calls/+page.svelte)updating-data/+page.svelte)customizing-toolbar/+page.svelte)customizing-grid/+page.svelte)with-highcharts/+page.svelte)with-amcharts/+page.svelte — amCharts 5; with-amcharts-4/+page.svelte — amCharts 4)Learn more about how these demos work: Usage examples.
Integrate into an existing Svelte project or adjust the sample project to your needs: