Skip to content

Commit 5b37c77

Browse files
author
Angelo Manganiello
authored
update README with cordova app info
1 parent 042e216 commit 5b37c77

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

cordova-app/README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,29 @@ cordova cli 7.0.0
33
I have run:
44
- cordova create app com.amanganiello90.angular angularDashFullStack
55
- cordova platform add android --> 6.3.0
6-
- cordova plugin add https://github.com/janeasystems/nodejs-mobile-cordova#staging-babel-UI-runtime
6+
- cordova plugin add nodejs-cordova-plugin
77
- add GRADLE_HOME system environment variable with final /bin and insert into PATH
88
- Add in the PATH ANDROID_HOME/tools and ANDROID_HOME/platform-tools
99
- I copied the server-cordova.js, index.js file and nodejs app (rename folder in nodejs-project) with node_modules and dist under electron-app into www folder
1010
- cordova prepare and import project into Android studio to install NDK
11+
- export ANDROID_NDK_HOME=/Users/username/Library/Android/sdk/ndk-bundle
1112
- cordova run android on android 6.0.0 device
1213
- remote debugger: https://ionic.zone/debug/remote-debug-your-app#android that is chrome://inspect
1314
- app is configured on http://localhost:8081
1415

15-
1616
Future Needs:
1717

18+
- use nodejs-project (contains node api and angular dist) under www also for electron-app project
19+
- rename frontend-app with angular-project.
20+
- update my full-stack-generator with electron app and cordova app
1821

19-
- rename electron.app.config with config.json
20-
- delete api, config.json, package.json (saving that is needed) from electron-app and insert all in a new node-app folder (full nodejs app with angular dist)
21-
- electron-app will copy node-app under it that has its package.json, index.js, server.js and .env
22-
- cordova-app with www (has the cordova-server.js and its index.js and package.json) and copies all node-app with dist renamed nodejs-project
23-
- rename frontend-app with client.
24-
- update my generator with electron app and cordova app
22+
All folders are in the same level.
2523

26-
All folders are in the same level... SOME FEATURES ARE BEEN ALREADY DEVELOPED IN WWW/NODEJS-PROJECT FOLDER:
24+
To run cordova project before execute:
25+
- Run ```npm install``` under www/nodejs-project
2726

28-
1) Run ```npm install``` under www/nodejs-project
29-
2) Run ```npm start``` app folder to run emulator with apk built
30-
3) Run ```npm run build``` under app folder to build apk
27+
After one of this according your requirement:
28+
1) Run ```npm start``` app folder to run emulator with apk built
29+
2) Run ```npm run build``` under app folder to build apk
3130

32-
N.B automatize process maybe with a generator. Then the cordova app run after a minute (or more). Maybe a module for jhipster
31+
N.B automatize process maybe with a generator. Then the cordova app run after a minute (or more). Maybe a module for jhipster

0 commit comments

Comments
 (0)