Divide Meteor files into client and server folders

限于喜欢 提交于 2019-12-24 10:57:58

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/20817037/divide-meteor-files-into-client-and-server-folders

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!