GithubHelp home page GithubHelp logo

cordova-example's Introduction

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

cordova-example's People

Contributors

daniel-lang avatar kononnable avatar pleerock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cordova-example's Issues

Access database from angular project

I wonder how to access the database from angular project? You recommend cordova-sqlite-storage plugin, but there are no definition for TypeScript. How can I select a table in angular project?

How to run? Exact steps for noob

Last time Ive worked with cordova 3-4 years ago. Can you please provide exact steps so just any noob like me can try this example?

  1. I did npm i cordova -g
  2. I installed plugin: cordova plugin add cordova-sqlite-storage --save
  3. Im trying to run cordova platform add android but it gives me following error:
$ cordova platform add android
Using cordova-fetch for cordova-android@^6.2.3
Adding android project...
Error: Error validating package name. Package name must look like: com.company.Name

Also readme tells me to do:

  1. copy Reflect.js and system.src.js from the node_modules folder into the lib folder

right after npm i and tsc, however I don't have "lib" directory after doing those steps.

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.