I'm just starting with MeteorJS and had a quick question on how the hierarchy works.
Here is my current setup (the file currently opened is server.js)
I feel like i'm not understanding something correctly. My current goal is to make the string "Test School" appear in index.html. What I have tried is saying Meteor.subscribe("schools")
in my index.js, and then in my index.html doing the following
{{#each schools}} test {{/each}}
However that doesnt seem to work. I want to understand how this works, not just get an answer from here. Currently, what I think should be happening is on the server side a Schools collection is being created, and a test school is being inserted. Then, I am publishing the schools so that when someone subscribes to it, they receive all the schools in the schools collection.
I've looked around online for many sources and examples of meteor, but cant seem to find one that splits up the hierarchy like mine (client/server/public), and does what I'm trying to do (mongo in server.js, retrieve info in clientside)
If anyone could tell me how to correctly make "test school" appear in my index.html, or give me any sort of advice, it would be greatly appreciated.