Home

Awesome

<p align="center"><br><img src="https://avatars3.githubusercontent.com/u/16580653?v=4" width="128" height="128" /></p> <h3 align="center">Ionic/Angular SQLite TypeOrm App</h3> <p align="center"><strong><code>ionic-sqlite-typeorm-app</code></strong></p> <p align="center">Ionic/Angular application demonstrating the use of the</p> <p align="center"><strong><code>@capacitor-community/sqlite</code></strong></p> <p align="center"><strong><code>with the TypeORM ORM</code></strong></p> <br> <p align="center"><strong><code>this app uses Capacitor 4</code></strong></p> <br> <p align="center"> <img src="https://img.shields.io/maintenance/yes/2023?style=flat-square" /> <a href="https://github.com/jepiqueau/ionic-sqlite-typeorm-app"><img src="https://img.shields.io/github/license/jepiqueau/ionic-sqlite-typeorm-app?style=flat-square" /></a> <a href="https://github.com/jepiqueau/ionic-sqlite-typeorm-app"><img src="https://img.shields.io/github/package-json/v/jepiqueau/ionic-sqlite-typeorm-app/master?style=flat-square" /></a> <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> <a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-1-orange?style=flat-square" /></a> <!-- ALL-CONTRIBUTORS-BADGE:END --> </p>

Maintainers

MaintainerGitHubSocial
Quéau Jean Pierrejepiqueau

Installation

To start building your App using this App, clone this repo to a new directory:

git clone https://github.com/jepiqueau/ionic-sqlite-typeorm-app.git 
cd ionic-sqlite-typeorm-app
git remote rm origin
npm install

npm run electron:install
  "appId": "com.jeep.app.ionic.angular.typeorm",
  "appName": "ionic-sqlite-typeorm-app",

Requirements for running TypeOrm

 var webpack = require('webpack');
 var TerserPlugin = require('terser-webpack-plugin')

 console.log('The custom config is used');
 module.exports = {
   optimization: {
     minimize: true,
     minimizer: [
       new TerserPlugin({
         terserOptions: {
           keep_classnames: true,
           keep_fnames: true,
         },
       }),
     ],
   },
   plugins: [
       new webpack.NormalModuleReplacementPlugin(/typeorm$/, function (result) {
           result.request = result.request.replace(/typeorm/, "typeorm/browser");
       })
   ],
 };

Building Web Project

npm run build:web

Building Native Project with standard procedure

npm run build:native
npx cap sync
npx cap copy

- Android

npx cap open android

Once Android Studio launches, make sure that you are using

and build your app through the standard Android Studio workflow.

- iOS

npx cap open ios

Once Xcode launches, you can build your app through the standard Xcode workflow.

Building Native Project with Ionic Cli

- Android

npm run ionic:android

Once Android Studio launches, make sure that you are using

and build your app through the standard Android Studio workflow.

- iOS

npm run ionic:ios

Once Xcode launches, you can build your app through the standard Xcode workflow.

Building Electron Project

npm run electron:start

Contributors ✨

Thanks goes to these wonderful people (emoji key):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore-start --> <!-- markdownlint-disable --> <p align="center"> <a href="https://github.com/jepiqueau"><img src="https://github.com/jepiqueau.png?size=100" width="50" height="50" /></a> </p> <!-- markdownlint-enable --> <!-- prettier-ignore-end --> <!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the all-contributors specification. Contributions of any kind welcome!