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-aspnet
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. 
- After you make any changes in React TypeScript sources, run the following command:
npm run convert-to-js split
If you want to run this script on specific folder you can pass it to the arguments
npm run convert-to-js "JSDemos/Demos/Diagram/**/React"
- To ensure that React JavaScript and TypeScript sources are always in sync, the following GitHub action is used: "Check generated JS demos".
NOTE: You will need Windows.
- 
Clone the devextreme-aspnet repo. 
- 
Open the repository.config.jsonfile, set thedevextreme-aspnetproperty to the path where your clone of thedevextreme-aspnetrepository is located, and set thedevextremeproperty to the path DevExtreme repo if you want to use local devextreme dist. For example:{ "devextreme": "C:/Work/DevExtreme", "devextreme-aspnet": "C:/Work/devextreme-aspnet" }
- 
Prepare ASP.NET demos for launch and development. Run this command in the devextreme-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.
NOTE: Install Parallels and Visual Studio in Parallels.
- Clone the current repo and devextreme-aspnet to a local folder in Parallels Windows.
NOTE: Avoid cloning on the Mac OS file system. The virtual machine treats it like a network drive.
- 
Open the repository.config.jsonfile. Set thedevextreme-aspnetproperty to the path of your cloneddevextreme-aspnetrepository. Set thedevextremeproperty to the DevExtreme repository path if you want to use local DevExtreme distribution. For example:{ "devextreme": "C:/Work/DevExtreme", "devextreme-aspnet": "C:/Work/devextreme-aspnet" }
- 
Prepare ASP.NET demos for launch and development. Run this command in the devextreme-demosrepository:npm run prepare-allEnsure you have .NET Framework 4.5.2 installed on your device. You can download the full Developer Pack here: .NET 4.5.2 Developer Pack Installer. 
NOTE: IIS express supports only .NET 7 on ARM architecture. Therefore, you cannot launch demos using Visual Studio. To run demos on ARM, utilize the Kestrel web server.
- Execute the following command in the \devextreme-demos\NetCoreDemos\folder:
dotnet run --urls=http://localhost:5001/
NOTE:
--urlscan have any url value.
IIS supports the ARM architecture, so you can launch demos using Visual Studio.
Solution:_ Clear local Nuget cache. Remove the
Windows:\Users\{username}\.nuget\packages\devextreme.aspnet.corefolder.