Run meteor.js locally without server

Phuoc Do
Phuoc Do
Dec 31, 2016 · 2 min read

We’re running, an online data visualization tool. Several users on our site indicated that they want to be able to connect to their local database to pull data. I’m on a quest to make our application run locally without complicated server setup. Here’s how I did it. I’d love to hear feedback other meteor.js developers.

Local builds come with default mongodb and node.js executables. We bypass typical authentication with a generated user. On server start, we check if local user exists and insert it to database:

Create local user if not exists

On client side, we hide login window, fill in credential and automatically log user in:

Hide login window
Automatically login with local credential

We create regular build with “meteor build” command. Write a couple of shell scripts to start mongodb and node.js server.

That’s how we did it. If you’re interested in trying our build and script, checkout the following link. Our software is great for data visualizations!

Phuoc Do
Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade