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.

Java High-Performance Architecture
Java High-Performance Architecture
Java High-Performance Architecture
Get Started with Meteor: Build a Full‑Stack App on Linux or macOS in Minutes

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/sh

2. Create an application

meteor create testmeteor

3. Run the application

cd testmeteor
meteor

Open http://localhost:3000/ to see the blank project.

4. Work with the database

cd testmeteor
meteor mongo

Insert 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 testmeteor
meteor add accounts-ui accounts-password

Insert {{> 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.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Node.jsMongoDBUser AuthenticationMeteor
Java High-Performance Architecture
Written by

Java High-Performance Architecture

Sharing Java development articles and resources, including SSM architecture and the Spring ecosystem (Spring Boot, Spring Cloud, MyBatis, Dubbo, Docker), Zookeeper, Redis, architecture design, microservices, message queues, Git, etc.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.