基于Meteor开发的Nodejs开源项目列表
基于Meteor开发的Nodejs开源项目列表
1、[url]https://github.com/SachaG/Telescope[/url] 一个开放源码的社交新闻应用程序 2、[url]https://github.com/jonathanKingston/britto[/url] 一个基于meteor的博客系统 3、[url]https://github.com/chuangbo/meteor-bbs[/url]这是一份对 Project Babel 3 的克隆,用 Meteor 写成。PB3 是一套非常简洁的社区软件,用coffeescript 4、[url]https://github.com/snez/jqm-meteor[/url]基于meteor使用UjQuery Mobile 5、[url]https://github.com/juanpujol/meteor-scrum[/url]scrum开发模式管理 6、[url]https://github.com/tomblomfield/meteor-chat[/url]简易聊天示例。
基于Meteor开发的Node.js开源项目列表
Meteor是一个用于构建现代Web和移动应用程序的全栈JavaScript平台。以下是一些基于Meteor开发的Node.js开源项目,这些项目涵盖了从社交新闻应用到Scrum开发工具等多种应用场景。
1. Telescope
GitHub: SachaG/Telescope
简介: Telescope 是一个开放源码的社交新闻应用程序。它允许用户提交链接并进行投票和评论。
示例代码:
// 文件: lib/collections.js
Posts = new Mongo.Collection('posts');
Comments = new Mongo.Collection('comments');
// 文件: lib/routes.js
Router.route('/post/:_id', function () {
this.layout(false);
this.render('PostPage', { data: Posts.findOne(this.params._id) });
});
// 文件: client/views/post/post_view.html
<template name="PostView">
<div class="post">
<h1>{{title}}</h1>
<p>{{body}}</p>
</div>
</template>
2. Britto
GitHub: jonathanKingston/britto
简介: Britto 是一个基于Meteor的博客系统。用户可以创建和发布文章,并查看其他人的文章。
示例代码:
// 文件: lib/collections.js
Articles = new Mongo.Collection('articles');
// 文件: server/publications.js
Meteor.publish('articles', function() {
return Articles.find();
});
// 文件: client/views/article_list.html
<template name="ArticleList">
<ul>
{{#each articles}}
<li><a href="{{pathFor 'article'}}">{{title}}</a></li>
{{/each}}
</ul>
</template>
3. Meteor-BBS
GitHub: chuangbo/meteor-bbs
简介: 这是一个对Project Babel 3的克隆,使用Meteor编写。它是一款简洁的社区软件,用CoffeeScript实现。
示例代码:
// 文件: lib/collections.coffee
Topics = new Meteor.Collection 'topics'
Posts = new Meteor.Collection 'posts'
// 文件: server/publications.coffee
Meteor.publish 'topics', ->
Topics.find()
// 文件: client/views/topic_list.html
<template name="TopicList">
<ul>
{{#each topics}}
<li><a href="{{pathFor 'topic'}}">{{title}}</a></li>
{{/each}}
</ul>
</template>
4. jqm-meteor
GitHub: snez/jqm-meteor
简介: 使用Meteor和jQuery Mobile构建的应用程序。它提供了一个轻量级的移动界面。
示例代码:
<!-- 文件: client/views/home.html -->
<div data-role="page" id="home">
<div data-role="header">
<h1>Home Page</h1>
</div>
<div role="main" class="ui-content">
<p>Welcome to the Home Page</p>
</div>
</div>
5. meteor-scrum
GitHub: juanpujol/meteor-scrum
简介: 一个用于管理Scrum开发流程的工具。它提供了敏捷开发所需的全部功能。
示例代码:
// 文件: lib/collections.js
Stories = new Mongo.Collection('stories');
Tasks = new Mongo.Collection('tasks');
// 文件: server/publications.js
Meteor.publish('stories', function() {
return Stories.find();
});
// 文件: client/views/story_list.html
<template name="StoryList">
<ul>
{{#each stories}}
<li><a href="{{pathFor 'story'}}">{{title}}</a></li>
{{/each}}
</ul>
</template>
6. meteor-chat
GitHub: tomblomfield/meteor-chat
简介: 一个简单的聊天示例,展示了如何使用Meteor实现实时通信。
示例代码:
// 文件: lib/collections.js
Messages = new Mongo.Collection('messages');
// 文件: server/publications.js
Meteor.publish('messages', function() {
return Messages.find();
});
// 文件: client/views/chat.html
<template name="Chat">
<ul>
{{#each messages}}
<li>{{username}}: {{text}}</li>
{{/each}}
</ul>
<input type="text" id="messageInput" />
<button id="sendButton">Send</button>
</template>
// 文件: client/views/chat.js
Template.Chat.events({
'click #sendButton': function(event, template) {
var message = template.find('#messageInput').value;
Messages.insert({ text: message, username: Meteor.user().username });
template.find('#messageInput').value = '';
}
});
以上就是一些基于Meteor开发的开源项目。每个项目都有其独特的功能和用途,适合不同的开发需求。
1、https://github.com/SachaG/Telescope 一个开放源码的社交新闻应用程序 2、https://github.com/jonathanKingston/britto 一个基于meteor的博客系统 3、https://github.com/chuangbo/meteor-bbs 这是一份对 Project Babel 3 的克隆,用 Meteor 写成。PB3 是一套非常简洁的社区软件,用coffeescript 4、https://github.com/snez/jqm-meteor 基于meteor使用UjQuery Mobile 5、https://github.com/juanpujol/meteor-scrum scrum开发模式管理 6、https://github.com/tomblomfield/meteor-chat 简易聊天示例。 用coffeescript
good !
赞
请问 我在远程vps上生成最简单的meteor的实例 ,我想把里面的英文改成中文 结果出现乱码 我该怎么做
基于Meteor开发的Node.js开源项目列表包括多个不同类型的项目,每个项目都展示了Meteor框架的强大功能和灵活性。以下是这些项目的简要介绍和示例代码:
1. Telescope (社交媒体应用)
Telescope 是一个现代化的开源社交新闻网站,类似于 Hacker News。
示例代码
// 安装和启动Telescope
git clone https://github.com/SachaG/Telescope.git
cd Telescope
npm install
npm start
2. Britto (博客系统)
Britto 是一个简单的博客系统,适合快速搭建个人或团队博客。
示例代码
// 克隆并安装Britto
git clone https://github.com/jonathanKingston/britto.git
cd britto
npm install
npm start
3. meteor-bbs (论坛系统)
meteor-bbs 是一个社区论坛系统,基于 Project Babel 3 的克隆。
示例代码
// 克隆并安装meteor-bbs
git clone https://github.com/chuangbo/meteor-bbs.git
cd meteor-bbs
npm install
npm start
4. jqm-meteor (基于jQuery Mobile的应用)
jqm-meteor 是一个使用jQuery Mobile构建的移动应用项目。
示例代码
// 克隆并安装jqm-meteor
git clone https://github.com/snez/jqm-meteor.git
cd jqm-meteor
npm install
npm start
5. meteor-scrum (Scrum管理工具)
meteor-scrum 是一个用于Scrum开发模式管理的工具。
示例代码
// 克隆并安装meteor-scrum
git clone https://github.com/juanpujol/meteor-scrum.git
cd meteor-scrum
npm install
npm start
6. meteor-chat (聊天应用)
meteor-chat 是一个简易的聊天应用示例。
示例代码
// 克隆并安装meteor-chat
git clone https://github.com/tomblomfield/meteor-chat.git
cd meteor-chat
npm install
npm start
以上是基于Meteor开发的一些开源项目及其基本使用方法。你可以根据需要选择合适的项目进行学习和二次开发。