- Notifications
You must be signed in to change notification settings - Fork372
The mobile app ofhttps://cnodejs.org made by Ionic 1.x, web demohttp://lanceli.com/cnodejs-ionic
License
lanceli/cnodejs-ionic
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
https://cnodejs.org hybird mobile application powered byIonic Framework 1.x using AngularJS 1.x and Cordova. The development stage powered byIonic Framework generator.
There is another one made by Ionic 3, check it out herehttps://github.com/lanceli/cnodejs-ionic3
If you'd like to run it locally, and modify something, you can do so by cloning this repo and running the following commands (assuming that you have Node, NPM, Ionic, Cordova, Grunt and Bower installed).
# Clone and Install dependencies$ git clone git://github.com/lanceli/cnodejs-ionic.git$ npm install$ bower install# Config api url on development mode# At line 54 in Gruntfile.js$ vim Gruntfile.js# Start the server on localhost:8010 on development mode# Watches for changes, automatically recompiles files and refreshes the browser$ grunt serve# Start the server on production mode$ grunt serve:compress# Add platform target$ grunt platform:add:ios$ grunt platform:add:android# Run on platform target on development mode$ grunt run:ios$ grunt run:android# Run on platform target on production mode$ grunt build:ios$ ionic run ios$ grunt build:android$ ionic run android
Need more detail? Please chekoutIonic Framework andIonic Framework generator.
if you have some problem with window system, please follow the blow step may help you fixed it.
grunt-contrib-compass/node_modules/tmp/lib/tmp.js:261throwerr;^ Error:cannotreadproperty'stdout'ofundefinedatcompile
see issue:Run grunt serve error
- Make sure you have installedRuby tools
- After you install ruby, use gem to install sass and compass(in cmd):
- gem install sass
- gem install compass
- use npm to install modules(in cmd), choose one to install:
- npm install cordova ionic
- npm install -g cordova ionic
After install all the modules, you may face the child_process error. This is a windows system bug. you can fixed it like this:
grunt-contrib-compass/node_modules/tmp/lib/tmp.js:261throwerr;^ Error:spawnENOENTaterrnoException(child_process.js:1001:11)atProcess.ChildProcess._handle.onexit(child_process.js:802:34)
A solution would be to replace spawn by win-spawn:
- npm install win-spawn
- Replace the line in the Gruntfile.js:
replacechild_processtowin-spawnvarspawn=require('child_process').spawn;tovarspawn=require('win-spawn');
more information about this defect,please see:
have try, it should work now.
When you run it locally in browser, CORS is a problem.
Disable web security of chrome
open -a /Applications/Google\ Chrome.app --args --disable-web-security --allow-file-access-from-files
ORAllow cross origin access in nginx
add_header Access-Control-Allow-Origin *;
Checkout this:How do I add Access-Control-Allow-Origin in NGINX?
See theCHANGELOG.
You are welcome to contribute. 🎉
About
The mobile app ofhttps://cnodejs.org made by Ionic 1.x, web demohttp://lanceli.com/cnodejs-ionic
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.