{"id":13634690,"url":"https://github.com/lanceli/cnodejs-ionic","last_synced_at":"2025-05-16T07:04:54.144Z","repository":{"id":22817019,"uuid":"26163862","full_name":"lanceli/cnodejs-ionic","owner":"lanceli","description":"The mobile app of https://cnodejs.org made by Ionic 1.x, web demo http://lanceli.com/cnodejs-ionic","archived":false,"fork":false,"pushed_at":"2017-12-06T02:17:53.000Z","size":1693,"stargazers_count":1527,"open_issues_count":16,"forks_count":373,"subscribers_count":124,"default_branch":"master","last_synced_at":"2025-04-08T16:08:54.801Z","etag":null,"topics":["cnodejs","ionic","ionic-framework","javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lanceli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-04T10:22:36.000Z","updated_at":"2025-02-23T12:07:29.000Z","dependencies_parsed_at":"2022-08-21T13:00:31.117Z","dependency_job_id":null,"html_url":"https://github.com/lanceli/cnodejs-ionic","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanceli%2Fcnodejs-ionic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanceli%2Fcnodejs-ionic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanceli%2Fcnodejs-ionic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanceli%2Fcnodejs-ionic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lanceli","download_url":"https://codeload.github.com/lanceli/cnodejs-ionic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254485055,"owners_count":22078767,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cnodejs","ionic","ionic-framework","javascript"],"created_at":"2024-08-02T00:00:30.301Z","updated_at":"2025-05-16T07:04:49.124Z","avatar_url":"https://github.com/lanceli.png","language":"JavaScript","readme":"# CNodejs Ionic app\n\n\u003e [https://cnodejs.org](http://cnodejs.org) hybird mobile application powered by [Ionic Framework](http://ionicframework.com) 1.x using AngularJS 1.x and Cordova. The development stage powered by [Ionic Framework generator](https://github.com/diegonetto/generator-ionic).\n\n[Demo](http://lanceli.com/cnodejs-ionic)\n\n[![Download on the app store](https://devimages.apple.com.edgekey.net/app-store/marketing/guidelines/images/badge-download-on-the-app-store.svg)](https://itunes.apple.com/cn/app/id954734793)\n\nThere is another one made by Ionic 3, check it out here https://github.com/lanceli/cnodejs-ionic3\n\n## Developing\n\nIf 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).\n\n```bash\n# Clone and Install dependencies\n$ git clone git://github.com/lanceli/cnodejs-ionic.git\n$ npm install\n$ bower install\n\n# Config api url on development mode\n# At line 54 in Gruntfile.js\n$ vim Gruntfile.js\n\n# Start the server on localhost:8010 on development mode\n# Watches for changes, automatically recompiles files and refreshes the browser\n$ grunt serve \n\n# Start the server on production mode\n$ grunt serve:compress\n\n# Add platform target\n$ grunt platform:add:ios\n$ grunt platform:add:android\n\n# Run on platform target on development mode\n$ grunt run:ios\n$ grunt run:android\n\n# Run on platform target on production mode\n$ grunt build:ios\n$ ionic run ios\n$ grunt build:android\n$ ionic run android\n```\n\nNeed more detail? Please chekout [Ionic Framework](http://ionicframework.com) and [Ionic Framework generator](https://github.com/diegonetto/generator-ionic).\n\n### Question\nif you have some problem with window system, please follow the blow step may help you fixed it.\n```js\ngrunt-contrib-compass/node_modules/tmp/lib/tmp.js:261\n        throw err;\n      ^\n     Error: cannot read property 'stdout' of undefined\n    at compile\n```\n\nsee issue: [Run grunt serve error](https://github.com/lanceli/cnodejs-ionic/issues/11)\n\n* Make sure you have installed [Ruby](http://rubyinstaller.org/downloads/) tools \n* After you install ruby, use gem to install sass and compass(in cmd):\n\u003e 1. gem install sass\n\u003e 2. gem install compass\n\n* use npm to install modules(in cmd), choose one to install:\n\u003e 1. npm install cordova ionic\n\u003e 2. npm install -g cordova ionic\n\nAfter install all the modules, you may face the child_process error. This is a windows system bug. you can fixed it like this:\n```js\ngrunt-contrib-compass/node_modules/tmp/lib/tmp.js:261\n        throw err;\n      ^\n     Error: spawn ENOENT\n    at errnoException (child_process.js:1001:11) \n   at Process.ChildProcess._handle.onexit (child_process.js:802:34)\n```\nA solution would be to replace spawn by win-spawn:\n\n1. npm install win-spawn\n2. Replace the line in the Gruntfile.js:\n```js\nreplace child_process to win-spawn\nvar spawn = require('child_process').spawn;\nto\nvar spawn = require('win-spawn');\n```\n\nmore information about this defect,please see:\n \n* [child_process error solution1](https://cnodejs.org/topic/54b4db04edf686411e1b9d7f#54b51ac3edf686411e1b9dcf)\n* [child_process error solution2](https://github.com/diegonetto/generator-ionic/issues/15#issuecomment-38075095)\n\nhave try, it should work now.\n\n### Cross-Origin\nWhen you run it locally in browser, CORS is a problem.\n\n**Disable web security of chrome**\n\n```\nopen -a /Applications/Google\\ Chrome.app --args --disable-web-security --allow-file-access-from-files\n``` \nOR **Allow cross origin access in nginx**\n\n```\nadd_header Access-Control-Allow-Origin *;\n```\nCheckout this: [How do I add Access-Control-Allow-Origin in NGINX?](http://serverfault.com/questions/162429/how-do-i-add-access-control-allow-origin-in-nginx/)\n\n## Release History\nSee the [CHANGELOG](CHANGELOG.md).\n\n## Contribute\nYou are welcome to contribute. 🎉\n\n## License\n[MIT](LICENSE)\n\n","funding_links":[],"categories":["JavaScript","Uncategorized","Open source projects","Awesome-CNode"],"sub_categories":["Uncategorized","Hybird"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanceli%2Fcnodejs-ionic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flanceli%2Fcnodejs-ionic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanceli%2Fcnodejs-ionic/lists"}