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.
# 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. To update the templates, do the following:
- Copy the templates from
/datacontract-cli/datacontract/templates
topublic
: cp -r ../datacontract-cli/datacontract/templates public - remove .items() everywhere (in all templates)
- replace "True" with "true", replace "False" with "false"
- Fix datacontract.html so that it does not contain all the wrapper stuff around it
npm run precompile
Created by Dr. Simon Harrer and Jochen Christ.
Supported by INNOQ.