将 Meteor 文件分成客户端和服务器文件夹 [英] Divide Meteor files into client and server folders

查看:32
本文介绍了将 Meteor 文件分成客户端和服务器文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用meteor 编写一个程序,我想知道如何将单个meteor JavaScript 文件(例如根据meteor"命令生成的文件)拆分为客户端和服务器文件夹(client.js、server.js 等).我还没有找到任何好的指南.有人知道吗?谢谢

I'm writing a program with meteor and I'm wondering how one would go about splitting a single meteor JavaScript file, like one that is generated upon the 'meteor' command, into a client and server folder (client.js, server.js, etc). I haven't found any good guides. Does anybody know of any? Thanks

推荐答案

只需创建两个目录,clientserver.然后把前端代码放在client,后端代码放在server.看看 http://docs.meteor.com/#structuringyourapp

Just create two directories, client and server. Then put the frontend codes in client and the backend codes in server. Take a look at http://docs.meteor.com/#structuringyourapp

这篇关于将 Meteor 文件分成客户端和服务器文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆