typeorm / cordova-example

Example project to demonstrate TypeORM in a Cordova app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Install the cordova cli: npm install -g cordova
  2. Install all dependencies: npm install
  3. Add your desired platform: cordova platform add <ios | android>
  4. 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

  1. Install the plugin: cordova plugin add cordova-sqlite-storage --save
  2. Install typeorm: npm install typeorm --save
  3. Add webpack.config.js or merge it with existing one

About

Example project to demonstrate TypeORM in a Cordova app


Languages

Language:TypeScript 34.9%Language:HTML 31.1%Language:CSS 26.4%Language:JavaScript 7.6%