Skip to main content

Bundling for Deployment

info

These instructions only apply if you're utilizing the Moopsy Project structure (see Moopsy Projects)

To bundle your MoopsyJS project, from the project root (the folder that contains frontend, backend, common, etc), run:

npx moopsy bundle

This will create a bundle folder at <project root>/bundle. The bundle folder will contain all the resources (including node modules) needed to run your app.

This bundle can now be sent to a remote server to be run, all the server needs is to have NodeJS installed (v20 or higher) + anything external of the project your app needs (like a MONGO_URL env variable, local mongo instance, etc).

To run the bundle, simply (from inside the bundle folder) do:

node start.js