stillatmylinux / ap3

Ionic app files for AppPresser 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ionic app files for AppPresser 3

These are the files used to compile mobile apps using AppPresser. They are based on Ionic 2, and use Angular 2 and Typescript.

This repository is for developers using AppPresser who want to make a lot of custom changes. If you make changes to these files, you cannot use the app builder, because it will overwrite your changes.

If you are not familiar with the command line, Angular 2, and Typescript, we recommend using our visual app builder instead of editing these files.

Usage

First, make sure you have node and npm installed.

  1. Clone this repository, cd into the directory cd ap3, and run npm install.
  2. Install the Ionic CLI tools

sudo npm install -g ionic

  1. Change src/providers/globalvars/globalvars.ts to your myapppresser.com account information. For example:
appid: string = '12';
apiurl: string = 'https://myapppresser.com/site-slug/'
endpoint: string = 'wp-json/ap3/v1/app/12';
  1. Run ionic serve to preview the app in your browser

Consult the Ionic documentation for cli commands, custom components, and more.

Update notes after updating Ionic

delete node_modules folder

npm install ionic-angular@latest --save npm install @ionic/app-scripts@latest --save-dev npm install -g cordova

npm install

cordova platform rm ios ionic cordova platform add ios ionic cordova plugin remove cordova-plugin-console ionic cordova plugin rm cordova-plugin-statusbar ionic cordova plugin add https://github.com/apache/cordova-plugin-statusbar.git

Possible issues

If cordova and/or ionic is not updated properly, you will get build errors.

Also, prod builds might see issues because of a webpack update https://github.com/ionic-team/ionic-app-scripts/releases/tag/v3.0.0

About

Ionic app files for AppPresser 3


Languages

Language:TypeScript 72.5%Language:HTML 13.0%Language:JavaScript 9.4%Language:CSS 5.1%