The Data Contract Editor is like VS Code, but for data contracts. It's enterprise-friendly as it stores your data contracts in your browser.
Features
- ✅ Syntax highlighting
- ✅ Code completion
- ✅ Error checking
- ✅ Privacy-friendly (no data leaves your browser)
- ✅ Live HTML preview
- ✅ Share data contracts via URLs
Try it out at editor.datacontract.com. And if you like it, please star the repository.
# run locally
npm install
npm run precompile # optional, only needed if you change the templates
npm run dev
# build for production
npm install
npm run precompile
npm run build
# deploy dist folder
Templates are taken from the Data Contract CLI and are fetched directly from the repository.
If you want to update them locally run npm run update-templates
, which will also be automatically run in the build.
Optionally, you can specify a location to the templates folder of a local datacontract-cli repository (or any other location).
Combined with npm run dev
, the templates will be live reloaded.
npm run update-templates --datacontract-template-source="/my/path/to/datacontract-cli/datacontract/templates/"
Created by Dr. Simon Harrer and Jochen Christ.
Supported by INNOQ.