V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Meteor Official Site
http://www.meteor.com/
Follow @meteorjs on Twitter
chuangbo
V2EX  ›  Meteor

Meteor-BBS v0.2 发布,支持 QQ 登录和简单的权限控制了

  •  
  •   chuangbo · 2012-10-17 13:33:50 +08:00 · 7739 次点击
    这是一个创建于 4207 天前的主题,其中的信息可能已经有所发展或是发生改变。
    这是一份对 Project Babel 3 的克隆,用 Meteor 写成。
    DEMO: https://meteor-bbs.meteor.com
    github: https://github.com/chuangbo/meteor-bbs
    QQ登录和权限控制是 @yonggao 发起的 pull request,感谢!

    相关讨论
    1. /t/48084 用 Meteor 克隆了一个实时的 V2EX
    2. 旧 Demo 地址 https://dnspod-bbs.meteor.com
    3. 理论上还支持 Github/Google/Twitter/新浪微博/Facebook http://auth-docs.meteor.com/#meteor_loginwithexternalservice
    46 条回复    1970-01-01 08:00:00 +08:00
    gonbo
        1
    gonbo  
       2012-10-17 13:41:30 +08:00
    不错。
    yetone
        2
    yetone  
       2012-10-17 14:11:36 +08:00
    终于出源码了,国庆的时候自己闷头鼓捣 Meteor 的日子真是不堪回首啊,终于有源码可以读了
    sobigfish
        3
    sobigfish  
       2012-10-17 14:37:33 +08:00
    牛啊,学习下,贴2个小bug,
    无内容的node下还是显示了下一页的按钮
    没登录时点新主题完全没反应啊。
    liuhang0077
        4
    liuhang0077  
       2012-10-17 14:38:05 +08:00
    期待支持weibo登陆
    guotie
        5
    guotie  
       2012-10-17 14:55:06 +08:00
    速度飞快啊
    cmonday
        6
    cmonday  
       2012-10-17 15:31:13 +08:00
    “创建新主题”还没有做?
    cmonday
        7
    cmonday  
       2012-10-17 15:33:41 +08:00
    原来必须登录才能创建,但是只有 qq 登录还是有些蛋疼的说……嗯,有空看看代码,也给你发 pull request
    sobigfish
        8
    sobigfish  
       2012-10-17 15:38:33 +08:00
    囧啊,每个app, meteorite都会下载一个Meteor,不能直接调用系统的么
    dreamer
        9
    dreamer  
       2012-10-17 15:44:33 +08:00
    看了一下代码,templates 都放在了一个文件里, client js 也是,不知道楼主有没有好的分离代码的方法?做 multi page 的时候还是想分离一下代码。
    chuangbo
        10
    chuangbo  
    OP
       2012-10-17 15:45:00 +08:00
    @cmonday 好啊,如果能支持多种登录方式,并且有配置可以让开发者可以自由开关某些登录方式就更好了。
    我一直认为一个网站同时支持多种登录方式会让用户非常困惑。
    chuangbo
        11
    chuangbo  
    OP
       2012-10-17 15:45:58 +08:00   ❤️ 1
    @dreamer 直接分到多个文件就好了,Meteor 对代码的组织没有任何要求,他会自动将目录下所有 js/css/html 扫描出来放到页面上。
    sobigfish
        12
    sobigfish  
       2012-10-17 15:47:53 +08:00
    weibo直接支持啊,怎么改 才接触meteor
    http://auth-docs.meteor.com/#accounts_ui_config
    dreamer
        13
    dreamer  
       2012-10-17 15:49:55 +08:00
    @chuangbo 在一个 html 里面可以使用另外一个 html 中的 template?
    twm
        14
    twm  
       2012-10-17 16:04:02 +08:00
    谁用php实现一个
    chuangbo
        15
    chuangbo  
    OP
       2012-10-17 16:57:32 +08:00
    @dreamer 是的,Meteor 会将“所有”代码合并到一起,不论你分成多少个文件、放在哪里、有多少个子目录
    https://github.com/tmeasday/unofficial-meteor-faq#where-should-i-put-my-files
    Numbcoder
        16
    Numbcoder  
       2012-10-17 17:05:34 +08:00
    说好的 single page 呢,我肿么看到了 url 跳转
    talentsnail
        17
    talentsnail  
       2012-10-17 17:23:55 +08:00
    @guotie 为什么速度会这么快?
    chuangbo
        18
    chuangbo  
    OP
       2012-10-17 17:37:53 +08:00
    dreamer
        19
    dreamer  
       2012-10-17 17:38:11 +08:00
    @chuangbo 看到了,多谢!
    liuhang0077
        20
    liuhang0077  
       2012-10-17 17:41:44 +08:00
    @dreamer 我超喜欢你的头像求 高清大图
    dplord
        21
    dplord  
       2012-10-17 18:34:42 +08:00
    呵呵呵,很不错哦
    dreamer
        22
    dreamer  
       2012-10-17 21:37:32 +08:00   ❤️ 1
    liuhang0077
        23
    liuhang0077  
       2012-10-17 21:41:17 +08:00
    @dreamer 哇咔咔非常感谢~ 已经感谢你啦 给你家点铜币嘿嘿
    sobigfish
        24
    sobigfish  
       2012-10-18 11:12:12 +08:00
    添加了个简单的meteor_loginwithexternalservice 的https://github.com/chuangbo/meteor-bbs/pull/4 楼主请审核 :)
    luke
        25
    luke  
       2012-11-04 14:28:12 +08:00
    @chuangbo 请问怎么才能使这个node进程在VPS(ubuntu 12.04 + nginx +nodejs)上不间断运行,比如配合forever使用?感谢!
    loveminds
        26
    loveminds  
       2012-11-04 16:26:30 +08:00   ❤️ 1
    oldgun
        27
    oldgun  
       2012-11-04 17:04:37 +08:00
    @luke 你不是知道答案了吗forever就可以
    luke
        28
    luke  
       2012-11-05 07:10:53 +08:00
    我还不太会用forever,能否具体说明一下? 我查到forever的用法如下
    $ forever --help
    usage: forever [options] [action] SCRIPT [script-options]

    运行Meteor-BBS的方法是:
    $ # meteor
    $ mrt

    然后我试着运行 forever start mrt 提示

    info: Forever processing file: mrt
    error: Cannot start forever
    error: script /srv/www/meteor-bbs/mrt does not exist.
    goofansu
        29
    goofansu  
       2012-11-05 07:23:50 +08:00
    速度超快
    chuangbo
        30
    chuangbo  
    OP
       2012-11-05 13:04:01 +08:00   ❤️ 1
    @luke 我在 /etc/rc.local 里是这样写的
    cd /path/to/meteor-bbs/ && nohup mrt --production=true --port 80 &
    luke
        31
    luke  
       2012-11-06 03:31:19 +08:00
    @chuangbo 非常完美,感谢!:-)
    d0a1ccec
        32
    d0a1ccec  
       2012-11-06 09:20:54 +08:00
    期待下一版本支持weibo 、 人人登录
    zihancn
        33
    zihancn  
       2012-11-06 09:52:52 +08:00
    能够搞的向V2EX就好了,期待中……
    vexfan
        34
    vexfan  
       2012-11-06 15:00:59 +08:00
    什么时候可以出服务器版本
    chuangbo
        35
    chuangbo  
    OP
       2012-11-06 16:21:06 +08:00   ❤️ 1
    @vexfan 你下载代码,放在你服务器上跑就可以了
    vexfan
        36
    vexfan  
       2012-11-06 17:52:06 +08:00
    这个怎么安装,菜鸟不懂~
    azure
        37
    azure  
       2012-11-06 18:10:40 +08:00
    这样的框架对搜索引擎是友好的嘛?看了下生成的html
    chuangbo
        38
    chuangbo  
    OP
       2012-11-06 23:39:58 +08:00   ❤️ 1
    vexfan
        39
    vexfan  
       2012-11-07 15:34:51 +08:00
    在linode上怎么配置?什么时候可以出个完全的教程配置一下这个论坛。这个论坛速度实在是超快。此外,这个论坛目前貌似还没有开发的很完整。什么时候可以开发完整,可以真的拿来做站?@chuangbo
    kavi
        40
    kavi  
       2012-11-08 11:27:13 +08:00
    不错,持续关注!!
    formalin14
        41
    formalin14  
       2012-11-08 17:34:34 +08:00
    你好,我最近也在研究meteor,能不能留个邮箱或者qq或者facebook,交流一下?
    dripple
        42
    dripple  
       2012-11-09 08:36:18 +08:00
    速度太快了
    xieren58
        43
    xieren58  
       2012-12-05 16:17:37 +08:00
    @chuangbo 权限没设好,前端可以直接改数据~~~ > 全部 ,测试 漏洞 前端 修改 数据 Node.js~~~
    meteor2013
        44
    meteor2013  
       2012-12-09 11:38:49 +08:00
    请问下面这个这个错误是不是因为没有正确安装 meteorite(atmosphere 的 package)造成的啊?

    应该如何解决、或者怎么能正确安装meteorite包呢?

    谢谢


    Error: The package named router does not exist.
    at _.extend.init_from_library (/usr/local/meteor/app/lib/packages.js:91:13)
    at Object.module.exports.get (/usr/local/meteor/app/lib/packages.js:225:11)
    at self.api.use (/usr/local/meteor/app/lib/bundler.js:83:28)
    at Array.forEach (native)
    at Function._.each._.forEach (/usr/local/meteor/app/lib/third/underscore.js:79:11)
    at Object.self.api.use (/usr/local/meteor/app/lib/bundler.js:82:9)
    at _.extend.init_from_app_dir [as on_use] (/usr/local/meteor/app/lib/packages.js:136:11)
    at _.extend.use (/usr/local/meteor/app/lib/bundler.js:362:11)
    at Object.exports.bundle (/usr/local/meteor/app/lib/bundler.js:649:12)
    at bundle_and_deploy (/usr/local/meteor/app/meteor/deploy.js:81:24)
    chuangbo
        45
    chuangbo  
    OP
       2012-12-09 12:32:06 +08:00
    @meteor2013 你是用 mrt 运行的吗?可以多运行 mrt 试几次,或者用 mrt update
    最近 router 这个包变化很大,我要改一下代码才可以正常运行,跟一个 Preview 的产品,虽然有趣,但确实很累
    xieren58
        46
    xieren58  
       2012-12-10 11:08:42 +08:00
    @chuangbo meteor-router 不支持ie,蛋疼~~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5438 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 06:43 · PVG 14:43 · LAX 23:43 · JFK 02:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.