Another ‘Hello World’ to MeteorJS
In this tutorial, I’ll try to walk you through building a simple realtime wall (like a guestbook) where anyone can post messages. And let’s try to do this without using any magic.
Install Meteor and Atmosphere
- Installing Meteor
- Installing Atmosphere
Create new project
Just go to the directory you want to create the app and create a new meteor project using following command.
meteor create the-wall
Feel free to run the meteor app although we haven’t even started coding it yet. It’s okay to keep it running even while you’re coding.
cd the-wall
meteor
Remove the magic
We’re not going to use any magical features of Meteor. So, let’s remove them.
meteor remove insecure
meteor remove autopublish
Create a collection
In meteor, we’ll be keeping most of our realtime data in collections. Create a new file posts/collections/posts.js
. This will make this collection available in both...