├── .gitignore ├── README.md ├── package.json └── src ├── app1-es5 ├── entity │ ├── Category.js │ └── Post.js └── index.js ├── app2-es5-json-schemas ├── entity │ ├── category.json │ └── post.json └── index.js └── app3-es6 ├── entity ├── CategorySchema.js └── PostSchema.js ├── index.js └── model ├── Category.js └── Post.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeorm/javascript-example/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeorm/javascript-example/HEAD/package.json -------------------------------------------------------------------------------- /src/app1-es5/entity/Category.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeorm/javascript-example/HEAD/src/app1-es5/entity/Category.js -------------------------------------------------------------------------------- /src/app1-es5/entity/Post.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeorm/javascript-example/HEAD/src/app1-es5/entity/Post.js -------------------------------------------------------------------------------- /src/app1-es5/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeorm/javascript-example/HEAD/src/app1-es5/index.js -------------------------------------------------------------------------------- /src/app2-es5-json-schemas/entity/category.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeorm/javascript-example/HEAD/src/app2-es5-json-schemas/entity/category.json -------------------------------------------------------------------------------- /src/app2-es5-json-schemas/entity/post.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeorm/javascript-example/HEAD/src/app2-es5-json-schemas/entity/post.json -------------------------------------------------------------------------------- /src/app2-es5-json-schemas/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeorm/javascript-example/HEAD/src/app2-es5-json-schemas/index.js -------------------------------------------------------------------------------- /src/app3-es6/entity/CategorySchema.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeorm/javascript-example/HEAD/src/app3-es6/entity/CategorySchema.js -------------------------------------------------------------------------------- /src/app3-es6/entity/PostSchema.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeorm/javascript-example/HEAD/src/app3-es6/entity/PostSchema.js -------------------------------------------------------------------------------- /src/app3-es6/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeorm/javascript-example/HEAD/src/app3-es6/index.js -------------------------------------------------------------------------------- /src/app3-es6/model/Category.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeorm/javascript-example/HEAD/src/app3-es6/model/Category.js -------------------------------------------------------------------------------- /src/app3-es6/model/Post.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeorm/javascript-example/HEAD/src/app3-es6/model/Post.js --------------------------------------------------------------------------------