Giter VIP home page Giter VIP logo

meteorcamp's Introduction

毛豆网Meteor 培训(本代码库已转移至https://github.com/meteorcamp/meteor101)

说明

  • 基础要求: 基本的HTML5,CSS,JavaScript知识

  • 工作环境平台的选择

    (优先级由高到低;本课程不支持在Windows上直接使用Meteor。)

    1. Mac
    2. Linux (可以在Windows机器上安装Linux,成为双启动系统)
    3. Windows + Virtualbox + Linux
  • 线上直播使用Moxtra

课程安排

讲义

考核

  • 在 github 里创建自己的项目
  • 发布自己的项目到 meteor.com

参考资料

meteorcamp's People

Contributors

tiansiyuan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

meteorcamp's Issues

作业例子完成后,有个关于Players使用的疑惑

Origin code:
players: function () {
return Players.find({}, { sort: { score: -1, name: 1 } });
},

My code:
players: function () {
return Players.find({}, { sort: { score: -1, name: 1 } }).fetch();
},
Origin Code 中 payers 在Template中 {{#each players}}遍历这个数据对象,但是{{#if}}无法判断length或者是否为空,所以我就换了第二种方式就可以了这是Okay的,我对第一种使用的players 数据结构有疑问,或者说 我们在操作数据库数据时候有哪些需要注意的点。谢谢!

关于添加leaderboard的player的问题

老师同学们晚上好,

我试了试昨天李老师留下的练习,在添加player的时候遇到了问题。
下面的代码没有办法添加新的player,
经过调试我发现根本没有运行下面的js函数,google无果,请大家帮我看看,谢谢!

html:

screen shot 2016-01-19 at 8 11 15 pm

js: Template.leaderboard.events({ 'click .add_player': function () { var player_name=document.getElementById("plyname").value; alert(player_name); Players.insert({"_id" : "gquNP63mJqTjar6","name" : this.player_name, "score" : 0}); } });

对这种自动化开发有一些困惑

学过一点ruby on rails和meteor一样,都是几行命令可以生成一个简单的网页,好像就是在操作一些命令,其中发生了什么,就不知道,出了问题也很难排查,所以比较困惑,这种自动化的过程,虽然能很快生成一些网页实现一些简单功能,但是真需要自己定制一些东西的时候,就感觉无所下手。

请教在mongoDB删除操作时的一个问题

如何删除第2个文档,而不影响第3,4个文档?
meteor:PRIMARY> db.co1.find({name: "liyang"})
{ "_id" : ObjectId("56a10fbe0a98da026f3b633a"), "name" : "liyang" }
{ "_id" : ObjectId("56a110700a98da026f3b633b"), "name" : "liyang", "age" : 28 }
{ "_id" : ObjectId("56a110a40a98da026f3b633c"), "name" : "liyang", "age" : 28, "count" : 1 }
{ "_id" : ObjectId("56a110a70a98da026f3b633d"), "name" : "liyang", "age" : 28, "count" : 2 }

Meteor 中如何使用纯前端的js库?

比如 chart.js 这样纯前端的js库在meteor中怎么使用? (chart.js 只是个例子,假设没有chart.js的package, 学会了方法大家可以举一反三)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.