/javascript-example

Example how to use TypeORM with JavaScript - ES5, ES6, ES7, ESNext.

Primary LanguageJavaScript

Example how to use TypeORM with JavaScript

  1. clone repository
  2. run npm i
  3. run node src/app1-es5/index.js to run simple example of usage with ES5.
  4. run node src/app2-es5-json-schemas/index.js to run example of usage with ES5 + schemas defined in a JSON.
  5. run node src/app3-es6/index.js to run simple example of usage with ES6.

If you are looking for more advanced JavaScript example with latest ES features and Babel used see here.