Get Started with Meteor: Build a Full‑Stack App on Linux or macOS in Minutes
This step‑by‑step guide shows how to install Meteor on Linux/macOS, create and run a blank project, interact with MongoDB, and add a user authentication system, all without needing to refresh the browser.
Note that Meteor does not support Windows; it must run on Linux or macOS. Since Meteor is built on Node.js, ensure Node.js is installed.
1. Install the environment
curl install.meteor.com | /bin/sh2. Create an application
meteor create testmeteor3. Run the application
cd testmeteormeteorOpen http://localhost:3000/ to see the blank project.
4. Work with the database
cd testmeteormeteor mongoInsert test documents into the tasks collection:
db.tasks.insert({
text: "Hello world!",
createdAt: new Date()
});
db.tasks.insert({
text: "Hi Meteor!",
createdAt: new Date()
});The data appears automatically in the page without a refresh.
5. Add a user system
cd testmeteormeteor add accounts-ui accounts-passwordInsert {{> loginButtons}} into a template to display a Sign‑in link.
After opening the browser, a “Sign in” link appears; clicking it shows a login/registration overlay.
You can retrieve the logged‑in user’s ID and username with Meteor.userId() and Meteor.user().username.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
