项目作者: ichigo92

项目描述 :
A simple CRUD native progressive web app developed using Ionic v4, Capacitor and Angular 5
高级语言: TypeScript
项目地址: git://github.com/ichigo92/ionic-crud-capacitor.git
创建时间: 2018-07-28T18:31:21Z
项目社区:https://github.com/ichigo92/ionic-crud-capacitor

开源协议:

下载


ionic-crud-capacitor

A simple CRUD native progressive web app developed using Ionic v4, Capacitor and Angular 5

To create a project, use command

  1. $ ionic start or
  2. $ ionic start myApp sidemenu --type=angular

Use this command to globally set ionic to use yarn instead of npm

  1. $ ionic config set -g npmClient yarn

For a local project go in the project directory and run

  1. $ ionic config set npmClient yarn

The majority of Ionic app development can be spent right in the browser using the ionic serve command

  1. $ cd myApp or cd .\myApp\
  2. $ ionic serve

Need to run this command if you require ionic-lab

  1. $ yarn add @ionic/lab or
  2. $ npm install @ionic/lab --save

For using the ionic lab use command

  1. $ ionic serve -lcs

To generate pages, components, directives etc. use command

  1. $ ionic generate or
  2. $ ionic g or
  3. $ ionic generate page "pages/User Detail"

To run on android

Generate the native project, if it does not already exist.

  1. $ yarn run build
  2. $ ionic capacitor add android
  3. $ ionic capacitor copy android
  4. $ ionic capacitor open android
  • Requires Android Studio 3+
    Set the Package ID, open capacitor.config.json file and modify the appId property.