This repository contains technical DevExtreme demos for Angular, React, Vue, jQuery, ASP.NET MVC, and ASP.NET Core.
To run the demos on your machine, clone this repository, run npm install, and follow the instructions below.
To prepare demos for development, you can run a script for all technologies or scripts for JavaScript and ASP.NET individually:
npm run prepare-all
npm run prepare-js
npm run prepare-mvc
Angular, Vue, and React demos can use bundles instead of separate files from node_modules. With bundles, demos launch faster but become harder to debug. Run the following command to create the bundles and replace the SystemJS configuration:
npm run prepare-bundles
To return to using separate files from node_modules, run npm run prepare-js.
-
Run the launch script:
npm run launch-demo -
Navigate to http://localhost:3000/.
You can pass additional parameter to specify port. It can be useful when you need to fast switching beatween one demo on different frameworks:
npm run launch-demo -- 3010
For fix autofixed errors:
npm run fix-lint
-
Run the following script to add a new demo:
npm run add-demo -
Use the built-in CLI to choose or enter the category, the demo name, and the technology for the new demo.
-
You will need Windows. Enable Developer Mode so that the
mklinkcommand doesn't require elevation.
To enable Developer Mode, type "Developer Settings" in a Windows search box and toggle the "Developer Mode" switch in the opened settings dialog.
Refer to the following articles to learn more: Symlinks, Developer Mode. -
In the
mobilerepository, use the Windows console to:- 2.1 Run
PrepareWorkspace.cmd. - 2.2 Run
Packer.cmd.
- 2.1 Run
-
Open the
mobile/repository.config.jsonfile and set thehgproperty to the path where your clone of themobilerepository is located. For example:{ "hg": "C:/Work/mobile" } -
Prepare ASP.NET demos for launch and development. Run this command in the
mobile/GitHub_Demosrepository.npm run prepare-allFor this, you need .NET Framework 4.5.2 installed on your device. You can download a full Developer Pack here: .NET 4.5.2 Developer Pack Installer.
-
Open the
NetCoreDemos/DevExtreme.NETCore.Demos.slnorMVCDemos/DevExtreme.MVC.Demos.slnproject in Visual Studio and add or edit demos there.