ionic-sample-hacker-news

所属分类:系统/网络安全
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2020-07-29 20:43:23
上 传 者sh-1993
说明:  离子样本黑客新闻
(ionic sample hacker news)

文件列表:
.bowerrc (29, 2015-04-28)
bower.json (195, 2015-04-28)
config.xml (4965, 2015-04-28)
engine/ (0, 2015-04-28)
engine/cordova-android-c0.6.1/ (0, 2015-04-28)
engine/cordova-android-c0.6.1/.jshintignore (43, 2015-04-28)
engine/cordova-android-c0.6.1/.jshintrc (162, 2015-04-28)
engine/cordova-android-c0.6.1/.reviewboardrc (194, 2015-04-28)
engine/cordova-android-c0.6.1/.travis.yml (98, 2015-04-28)
engine/cordova-android-c0.6.1/CONTRIBUTING.md (1403, 2015-04-28)
engine/cordova-android-c0.6.1/LICENSE (15705, 2015-04-28)
engine/cordova-android-c0.6.1/NOTICE (647, 2015-04-28)
engine/cordova-android-c0.6.1/RELEASENOTES.md (17067, 2015-04-28)
engine/cordova-android-c0.6.1/VERSION (10, 2015-04-28)
engine/cordova-android-c0.6.1/bin/ (0, 2015-04-28)
engine/cordova-android-c0.6.1/bin/android_sdk_version (1048, 2015-04-28)
engine/cordova-android-c0.6.1/bin/android_sdk_version.bat (1039, 2015-04-28)
engine/cordova-android-c0.6.1/bin/check_reqs (1160, 2015-04-28)
engine/cordova-android-c0.6.1/bin/check_reqs.bat (1021, 2015-04-28)
engine/cordova-android-c0.6.1/bin/create (2229, 2015-04-28)
engine/cordova-android-c0.6.1/bin/create.bat (1006, 2015-04-28)
engine/cordova-android-c0.6.1/bin/lib/ (0, 2015-04-28)
engine/cordova-android-c0.6.1/bin/lib/android_sdk_version.js (2270, 2015-04-28)
engine/cordova-android-c0.6.1/bin/lib/check_reqs.js (11309, 2015-04-28)
engine/cordova-android-c0.6.1/bin/lib/create.js (14361, 2015-04-28)
engine/cordova-android-c0.6.1/bin/lib/simpleargs.js (1167, 2015-04-28)
engine/cordova-android-c0.6.1/bin/templates/ (0, 2015-04-28)
engine/cordova-android-c0.6.1/bin/templates/cordova/ (0, 2015-04-28)
engine/cordova-android-c0.6.1/bin/templates/cordova/build (1347, 2015-04-28)
engine/cordova-android-c0.6.1/bin/templates/cordova/build.bat (1010, 2015-04-28)
engine/cordova-android-c0.6.1/bin/templates/cordova/clean (1510, 2015-04-28)
engine/cordova-android-c0.6.1/bin/templates/cordova/clean.bat (1010, 2015-04-28)
engine/cordova-android-c0.6.1/bin/templates/cordova/defaults.xml (1038, 2015-04-28)
engine/cordova-android-c0.6.1/bin/templates/cordova/lib/ (0, 2015-04-28)
engine/cordova-android-c0.6.1/bin/templates/cordova/lib/appinfo.js (1815, 2015-04-28)
engine/cordova-android-c0.6.1/bin/templates/cordova/lib/build.js (22121, 2015-04-28)
... ...

Ionic Hacker News Sample App === ## Setup 1. Prerequisites Make sure you have [NodeJS](https://nodejs.org/) installed on your machine. 2. Global Dependencies Install the project's global dependencies by executing the following commands in a terminal: ```bash $ npm install -g cordova ionic bower gulp ``` _You might be required to run the previous command using `sudo`._ 3. Clone the project Use Git to clone the sample app onto your machine: ```bash $ git clone https://github.com/Osedea/ionic-sample-hacker-news.git ``` 4. Install Dependencies Execute the following commands _within_ the new `ionic-sample-hacker-news` directory that was created after you cloned the project: ```bash $ npm install $ bower install ``` 5. Run the app To run the app in browser (during development), execute the following command: ```bash $ ionic serve ``` 6. Build for iOS To build and run the app for iOS, make sure to have Xcode and its CLI tools installed on your machine. Also, you will need to have the following NPM modules installed globally; ```bash $ npm install -g ios-sim $ npm install -g ios-deploy ``` Then, do the following command: ```bash $ ionic platform add ios ``` _When working with a new project, you might not have the permissions to run the previous command. In this case, run the `$ ionic hooks add` command to add all necessary Cordova hooks._ To build the app for future runs, execute this command: ```bash $ ionic build ios ``` _If you notice that you're getting `FAILED pluginJSON=[...]` errors in Xcode's console, that means not all plugins have been properly added to the project build. One thing you can do is manually add the missing plugins using the `$ cordova plugin add plugin_name` command. You can check all the plugins that have been added to the build by going to `ProjectName -> Build Phases -> Compile Sources` in Xcode._ You can run the app on your iOS device by selecting it from Xcode's device selector. 7. Build for Android To build and run the app for Android, make sure to have the Android SDK, Android SDK Platform-tools, Android SDK Build-tools and an Android API (latest is API 22) installed on your machine. Then, do the following command: ```bash $ ionic platform add android ``` Similar to building for iOS, run the following command to build the project for future runs: ```bash $ ionic build android ``` Run in the default Android emulator by executing the following: ```bash $ ionic run android ``` __Using Crosswalk__ This can be achieved by doing: ```bash $ ionic browser add crosswalk ``` Removing crosswalk from your project can be done with: ```bash $ ionic browser revert android ```

近期下载者

相关文件


收藏者