`
sillycat
  • 浏览: 2560111 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Build Fishing Record(1)Meteor AngularJS Bootstrap Ionic Angular Material

 
阅读更多
Build Fishing Record(1)Meteor AngularJS Bootstrap Ionic Angular Material

1 Fundament
Create the First UI Project, Working on Meteor
> meteor create smart-fisher

Disable Blaze and other template thing
> meteor remove blaze-html-templates

> meteor remove ecmascript

Add AngularJS
> meteor add angular

Following this documents to integrate angularJS and meteor
https://www.meteor.com/tutorials/angular/templates

<head><body><template> get parsed from all the html

Share JS between client and server
Tasks = new Mongo.Collection('tasks');

Client side codes
if (Meteor.isClient) {
  // This code only runs on the client
  angular.module('simple-todos',['angular-meteor']);

  angular.module('simple-todos').controller('TodosListCtrl', ['$scope', '$meteor',
    function ($scope, $meteor) {

      $scope.tasks = $meteor.collection(Tasks);

  }]);
}

Try to add more data in mongo to see what happened.
> meteor mongo

MongoDB shell version: 2.6.7
connecting to: 127.0.0.1:3001/meteor

> db.tasks.insert( { text: "nodejs and frontend master", createdAt: new Date() } );

> db.tasks.find();
{ "_id" : ObjectId("5679aa466ef681a112809143"), "text" : "nodejs and frontend master", "createdAt" : ISODate("2015-12-22T19:53:42.867Z") }

Add One Item
      $scope.addTask = function (newTask) {
        $scope.tasks.push( {
          text: newTask,
          createdAt: new Date() }
        );
      };

List and Remove Item
    <header>
        <h1>Todo List</h1>
        <form class="new-task" ng-submit="addTask(newTask); newTask='';">
              <input ng-model="newTask" type="text"
                 name="text" placeholder="Type to add new tasks" />
        </form>
      </header>

      <ul>
        <li ng-repeat="task in tasks" ng-class="{'checked': task.checked}">
              <button class="delete" ng-click="tasks.remove(task)">&times;</button>
              <input type="checkbox" ng-model="task.checked" class="toggle-checked" />
              <span class="text">{{task.text}}</span>
        </li>
      </ul>

Try to Start and Debug on iOS
> meteor install-sdk ios
Please follow the instructions here:
https://github.com/meteor/meteor/wiki/Mobile-Development-Install:-iOS-on-Mac

> meteor add-platform ios

> meteor run ios

That is only on emulator

Try to Start on Android
> meteor install-sdk android
Please follow the instructions here:
https://github.com/meteor/meteor/wiki/Mobile-Development-Install:-Android-on-Mac

Set the ANDROID_HOME, usually android studio install that in ~/Library/Android/sdk by default. And we need add
$ANDROID_HOME/tools and $ANDROID_HOME/platform-tools to my PATH.

And we need to create one emulator as well, Create a Virtual Device

We need install the API 22 manually. [Configure] —> [SDK Manager] Select the API 22
> meteor add-platform android

> meteor run android

Check device List
> adb devices
List of devices attached
192.168.56.101:5555 device

Genymotion Start and Create one Virtual Device

> meteor run android-device

Meteor thinks that is a real device.

Running on real device
https://www.meteor.com/tutorials/angular/running-on-mobile

$ne should be not equal
      $scope.$watch('hideCompleted', function() {
        if ($scope.hideCompleted){
          $scope.query = {checked: {$ne: true}};
        }
        else{
          $scope.query = {};
        }
      });

      $scope.incompleteCount = function () {
        return Tasks.find({ checked: {$ne: true} }).count();
      };

        <h1>Todo List ( {{ incompleteCount() }} )</h1>
        <label class="hide-completed">
              <input type="checkbox" ng-model="hideCompleted"/>
              Hide Completed Tasks
        </label>

user account https://www.meteor.com/tutorials/angular/adding-user-accounts

security https://www.meteor.com/tutorials/angular/security-with-methods

publish and subscribe https://www.meteor.com/tutorials/angular/publish-and-subscribe

More Example
http://www.angular-meteor.com/tutorials/socially/angular1/bootstrapping

http://www.angular-meteor.com/tutorials/socially/angular2/bootstrapping

strongest
http://meteor-ionic.meteor.com/

https://github.com/meteoric/meteor-ionic

2 Start to Try with Mobile Angular UI
http://mobileangularui.com/docs/

Install the demo codes and check
> npm install -g bower yo gulp generator-mobileangularui

https://atmospherejs.com/krysfree/mobile-angular-ui

I need to understand how to integrate mobile angular UI to meteor.

Install meteor
> curl https://install.meteor.com/ | sh

Angular Material
https://material.angularjs.org/latest/demo/content

https://github.com/Urigo/meteor-angular-socially

Install the brew
http://coolestguidesontheplanet.com/installing-homebrew-os-x-yosemite-10-10-package-manager-unix-apps/

Install the image tool
> brew install graphicsmagick

References:
https://www.meteor.com/tutorials/angular/filtering-collections
http://mobileangularui.com/
https://github.com/mcasimir/mobile-angular-ui

http://ionicframework.com/examples/

AngularJS Experience for PhoneCat
http://sillycat.iteye.com/blog/2007538
http://sillycat.iteye.com/blog/2007546
http://sillycat.iteye.com/blog/2007988
分享到:
评论

相关推荐

    meteor-bootstrap-os.windows.x86_64.tar.gz

    https://packages.meteor.com/bootstrap-link?arch=os.windows.x86_64

    meteor-angular-material-todomvc:简单 Meteor Angular Material TODO 应用程序示例

    【标题】"meteor-angular-material-todomvc"是一个基于Meteor、Angular Material框架的简单TODO应用程序示例,它展示了如何将这两个强大的技术结合在一起构建一个功能齐全的MVC(模型-视图-控制器)应用。...

    meteor-bootstrap-toggle:为 Meteor 包装 Bootstrap Toggle CDN

    1. 添加包到项目:在Meteor命令行工具中,输入`meteor add meteor-bootstrap-toggle`,这将自动将包及其依赖引入到你的项目中。 2. 在HTML模板中,你可以像使用普通Bootstrap元素一样,添加Bootstrap Toggle的HTML...

    Meteor-Bootstrap-Components:Meteor 的 Bootstrap 组件助手

    【标题】"Meteor-Bootstrap-Components" 是一个专门为 Meteor 框架设计的 Bootstrap 组件库,它旨在简化在 Meteor 应用程序中使用 Bootstrap 的过程。Bootstrap 是一个流行的前端 UI 工具包,提供了丰富的预设样式和...

    Angle-3.4-meteor-angular

    "Angle-3.4-meteor-angular"项目正是这样的一个集成,它结合了AngularJS(Angular 1.x版本)与Meteor框架,为开发者提供了构建全栈Web应用的强大工具。本文将深入探讨这两个组件以及它们如何协同工作,以帮助你更好...

    Angle - Bootstrap Admin Template v3.5.4

    提供AngularJS和angular2两种版本的JS框架支持。主题内置了引导页模板和各个版本的seed模板。 该模板提供了整套的前端解决方案,并使用了npmbower等一系列工具进行了对前添加自定义属性段代码的管理,实现了代码热...

    meteor-bootstrap-sass-bug:回购以重现错误

    脚步: $ meteor # won't work# While Building the application:# meteor-bootstrap-sass-bug.sass: Scss compiler error: undefined# /tmp/meteor-bootstrap-sass-bug/meteor-bootstrap-sass-bug.sass:1: error: ...

    meteor-bootstrap-tagsinput:流星包裹的Bootstrap标签输入

    在本文中,我们将深入探讨"meteor-bootstrap-tagsinput"这一流星包裹的Bootstrap标签输入组件,它为开发者提供了在Meteor应用中使用Bootstrap标签输入功能的可能性。 "meteor-bootstrap-tagsinput"是一个专为Meteor...

    meteor-angular-strap:(用于 Bootstrap 3 的 AngularJS 1.2+ 原生指令。)为meteorjs 重新打包

    本文将深入探讨"meteor-angular-strap"项目,它是如何为Meteor和AngularJS搭建桥梁,使开发者能够利用AngularJS的原生指令来构建Bootstrap 3的应用。 "meteor-angular-strap"是一个专为Meteor定制的AngularJS库,它...

    meteor-bootstrap-themes

    《 Meteor与Bootstrap主题应用详解 》 在Web开发领域,Meteor和Bootstrap是两个非常重要的工具。Meteor是一个全栈JavaScript框架,用于快速构建实时的、可伸缩的Web应用,而Bootstrap则是一个流行的前端开发框架,...

    Meteor-bootstrap-material-datepicker:T00rkbootstrap-material-datepicker的流星包

    T00rk / bootstrap-material-datepicker的流星包 用于自举材料设计的日期时间选择器。 致谢 TOOrk / bootstrap-material-datepicker( ) fezvrasta / bootstrap-material-design( ) 先决条件 下划线 momentjs:...

    meteor-bootstrap-hover-dropdown:启用 Bootstrap 下拉菜单以在悬停时激活

    《引导悬停下拉菜单:Meteor与Bootstrap的完美结合》 在Web开发中,交互性的提升是提升用户体验的关键因素之一。Bootstrap作为一个流行的前端框架,以其丰富的组件和易用性深受开发者喜爱,其中下拉菜单(Dropdown...

    meteor-bootstrap-material-design:Meteor 的 Bootstap 材料设计

    Bootstrap Material Design 现在与 Meteor 本地集成。 请用 (全包) 或者 (无 Glyphicons - 如果您想使用其他图标集,例如 Font Awesome,则很有用)。

    angle-admin-v3.5.1(meteor-angular版)

    总而言之,angle-admin-v3.5.1(meteor-angular版)是基于 Meteor 和 Angular 的一款强大且美观的后台管理模板,它结合了Bootstrap的灵活性和H5Theme的高品质设计。对于寻求高效开发解决方案的团队来说,这是一个值得...

    meteor-bootstrap-calendar:流星靴日历

    “meteor-bootstrap-calendar”是一个专为Meteor.js框架设计的日历组件,它基于Serhioromano的Bootstrap Calendar进行封装,为开发者提供了一种简单、直观的方式来集成日历功能到他们的应用程序中。这个组件充分利用...

    socially-angular:Meteor和AngularJS应用程序

    - Meteor 提供了方便的 API 供 AngularJS 调用,可以通过 meteor-angular 插件实现两者的无缝对接。 - 在 Meteor 中创建的数据模型可以直接在 AngularJS 的控制器中使用,双向数据绑定使得数据的改变能立即反映到...

    meteor-Ionic-cn-:用 meteor Ionic 做的 app

    6. **打包发布**:完成开发后,可以使用Meteor的`meteor build`命令生成适用于不同平台的打包文件,再配合Ionic的`ionic capacitor run`命令,将应用部署到Android或iOS设备上。 通过以上步骤,我们就可以构建出一...

    Angular-angular-meteor.zip

    Angular-angular-meteor.zip,角度和流星-完美的堆栈角度流星编译器,Angularjs于2016年发布,是Angularjs的重写版。它专注于良好的移动开发、模块化和改进的依赖注入。angular的设计目的是全面解决开发人员的web应用...

Global site tag (gtag.js) - Google Analytics