Skip to content

meteorjs - tool cheatsheet

MeteorJS is a full-stack JavaScript platform that allows developers to build modern web applications quickly and easily.

Here are some of the benefits of using MeteorJS:

  • Rapid development: MeteorJS provides a simple and easy-to-use framework for building web applications. This makes it faster to build prototypes and get your application up and running quickly.
  • Real-time updates: MeteorJS includes real-time updates out of the box, which means that changes made to the database or application are immediately reflected on the user's screen. This is ideal for applications that require real-time collaboration or frequent updates.
  • Cross-platform support: MeteorJS supports multiple platforms including web, iOS, and Android. This allows developers to build applications that can be deployed on multiple platforms using the same codebase.
  • Modular architecture: MeteorJS uses a modular architecture that allows developers to build applications using small, reusable components. This makes it easier to maintain and update your application over time.
  • Large community: MeteorJS has a large and active community of developers who are constantly contributing to the platform. This means that there are many resources available for learning and troubleshooting issues.
    Integration with other technologies: MeteorJS integrates easily with other technologies such as React, Angular, and MongoDB. This makes it easy to use the best tools for each aspect of your application.

meteor.com

program cheatsheet

install Meteor

npm install -g meteor
yarn install -g meteor
need npm? install it via node-volume-manager (nvm)

create new bare meteor project

will create a folder called src in the current working directory

meteor create --bare src

To start with a different app template, try one of the following:

 meteor create --bare       # to create an empty app
 meteor create --minimal    # to create an app with as few Meteor packages as possible
 meteor create --full       # to create a more complete scaffolded app
 meteor create --react      # to create a basic React-based app
 meteor create --vue        # to create a basic Vue-based app
 meteor create --apollo     # to create a basic Apollo + React app
 meteor create --svelte     # to create a basic Svelte app
 meteor create --typescript # to create an app using TypeScript and React
 meteor create --blaze      # to create an app using Blaze

use a koad:io skeleton

only use a --bare project when using a skeleton.

copy the PWA skeleton to override aspects of the --bare project.

meteor create --bare src && \
cp -Rf ~/.koad-io/skeletons/progressive/* ./

use your entity to create this same setup in the usual place

alice create site --progressive example.koad.sh

opt out of mongodb (production)

Meteor will automatically spawn a mongodb in the .meteor/local folder of your project when you are developing it but a built project in production needs MONGO_URL to be set.

If you want to run meteor without a mongodb (accounts and live data won't work), or maybe use a different DB for these things (advanced af).

Good for...

  1. simple sites that don't have login,
  2. serverside done in-memory only (mongodb in-memory collections, never calling an actual DB).
  3. that use a different meteor server's via DDP.

issues/31

export MONGO_URL=false

file specific cheatsheets

file: src/.meteor/packages
file: .env

install meteor - www.meteor.com/developers/install
documentation - docs.meteor.com/install.html
api documentation - docs.meteor.com/api/core.html
cli documentation - docs.meteor.com/commandline.html
environment variables - docs.meteor.com/environment-variables.html