Hello. I’m new at this forum and Meteor is new to me as well.
I wanted to learn some Meteor basics and tried to create Todo List from official tutoralhttps://www.meteor.com/tutorials/react.
At 2.4 step, I should Create App component at imports/ui/App.jsx » .
The problem is I don’t have such folder:
taras@t626:~/workspace/simple-todos$ ls -a
. .. client .gitignore .idea .meteor node_modules package.json server
Using imports folder wasn’t the original way to create Meteor applications, it came with Meteor 1.3. That’s why it doesn’t come in the default Meteor project. You can get a small bootstrap project with this folder by writing meteor create myprojectname --full, but its structure is too complex for the small tutorial example app which just requires a few files.
Another question : What the pattern is that in the ToDO APP:
Meteor.methods({
'tasks.insert'(text) {
check(text, String);
// Make sure the user is logged in before inserting a task
if (! this.userId) {
throw new Meteor.Error('not-authorized');
}
To be exact : 'tasks.insert'(text) { – that part (the quotation marks).
what do they mean