Giter Site home page Giter Site logo

nyeongna / datacontract-editor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from datacontract/datacontract-editor

0.0 0.0 0.0 982 KB

Edit your data contract in the Data Contract Editor

Home Page: https://editor.datacontract.com

License: Other

JavaScript 67.02% HTML 32.98%

datacontract-editor's Introduction

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.

Data Contract Editor

Development Setup

# run locally
npm install
npm run dev
# build for production
npm install
npm run build
cp public/templates.js dist/templates.js
# deploy dist folder

How to update the templates

Templates are taken from the Data Contract CLI. To update the templates, do the following:

  1. Copy the templates from /datacontract-cli/datacontract/templates to public: cp -r ../datacontract-cli/datacontract/templates public
  2. remove .items() everywhere (in all templates)
  3. replace "True" with "true", replace "False" with "false"
  4. Fix datacontract.html so that it does not contain all the wrapper stuff around it
  5. npm run precompile

License

MIT

Credits

Created by Dr. Simon Harrer and Jochen Christ.

Supported by INNOQ.

datacontract-editor's People

Contributors

simonharrer avatar jpraetorius avatar jochenchrist avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.