Skip to content

datacontract/datacontract-editor

Repository files navigation

Data Contract Editor

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.

Data Contract Editor

Development Setup

# 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

How to update the templates

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/"

License

MIT

Credits

Created by Dr. Simon Harrer and Jochen Christ.

Supported by INNOQ.

About

Edit your data contract in the Data Contract Editor

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •