cordova-example
cordova-example copied to clipboard
Example project to demonstrate TypeORM in a Cordova app
Using TypeORM in a Cordova project
This project demonstrates how TypeORM can be used within a Cordova or Phonegap app by using the cordova-sqlite-storage plugin.
How to run this example
- Install the cordova cli:
npm install -g cordova
- Install all dependencies:
npm install
- Add your desired platform:
cordova platform add <ios | android>
- Run the app:
npm run <ios | android>
This project is deliberately set up to use no automation tools like gulp so you can integrate and use your own workflow.
Using TypeORM in your own app
- Install the plugin:
cordova plugin add cordova-sqlite-storage --save
- Install typeorm:
npm install typeorm --save
- Add
webpack.config.js
or merge it with existing one