Giter VIP home page Giter VIP logo

Comments (3)

cleverbeagle avatar cleverbeagle commented on May 22, 2024

This is part of the Meteor Guide structure. I'm not wholly in agreement with it either, but I'd like to follow that as closely as possible for now to avoid too much variance between Pup/other Meteor code folks might find in the wild (especially TMC tutorials).

from pup.

aferreol avatar aferreol commented on May 22, 2024

Isn't it because meteor tutorial and guide use ValidatedMethod on the methods ? (Which make the call of methods.js from the client mandatory) Like on their todo app ?

I'm a bit skeptical about this, especially if methods.js for Users is located in the server folder.

from pup.

cleverbeagle avatar cleverbeagle commented on May 22, 2024

That would be a question for the Meteor folks.

As I understand it, it's to keep all of your data-related code under the /imports/api directory as splitting it off to the server doesn't serve much utility. In respect to that nested /server directory, this takes advantage of Meteor's ability to ensure that code can only be imported into a server context (as opposed to using Meteor.isServer everywhere).

From the sound of the roadmap, there's a goal to move away from the /imports directory entirely, so I suppose it's a matter of time and keeping an eye on it.

from pup.

Related Issues (20)

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.