{"id":13804656,"url":"https://github.com/XervoIO/demeteorizer","last_synced_at":"2025-05-13T17:32:49.463Z","repository":{"id":7109336,"uuid":"8402497","full_name":"XervoIO/demeteorizer","owner":"XervoIO","description":"Converts a Meteor app into a standard Node.js application.","archived":false,"fork":false,"pushed_at":"2017-04-17T23:56:09.000Z","size":307,"stargazers_count":703,"open_issues_count":16,"forks_count":59,"subscribers_count":36,"default_branch":"master","last_synced_at":"2024-10-31T15:24:02.368Z","etag":null,"topics":["meteor","nodejs"],"latest_commit_sha":null,"homepage":"http://npm.im/demeteorizer","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XervoIO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-25T04:49:54.000Z","updated_at":"2024-07-25T15:08:16.000Z","dependencies_parsed_at":"2022-08-19T01:30:41.701Z","dependency_job_id":null,"html_url":"https://github.com/XervoIO/demeteorizer","commit_stats":null,"previous_names":["onmodulus/demeteorizer"],"tags_count":65,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XervoIO%2Fdemeteorizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XervoIO%2Fdemeteorizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XervoIO%2Fdemeteorizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XervoIO%2Fdemeteorizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XervoIO","download_url":"https://codeload.github.com/XervoIO/demeteorizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223952660,"owners_count":17230928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["meteor","nodejs"],"created_at":"2024-08-04T01:00:52.030Z","updated_at":"2024-11-18T20:32:19.084Z","avatar_url":"https://github.com/XervoIO.png","language":"JavaScript","readme":"Demeteorizer\n============\n\n[![NPM version](https://badge.fury.io/js/demeteorizer.svg)](http://badge.fury.io/js/demeteorizer) [![Build Status](https://travis-ci.org/onmodulus/demeteorizer.svg?branch=master)](https://travis-ci.org/onmodulus/demeteorizer)\n\nCLI tool to convert a Meteor app into a \"standard\" Node.js application. The\nresulting app contains a package.json file with all required dependencies and\ncan be easily ported to your own servers or\n[Node.js PAAS providers](https://github.com/joyent/node/wiki/Node-Hosting).\n\nNote that version 3 of Demteorizer changes the output structure, which may cause\nissues depending on how/where you are deploying your application. With the new\nstructure, the generated node application is available in\n`bundle/programs/server`.\n\n## How Demeteorizer Works\n\nDemeteorizer bundles your Meteor application using `meteor build` then updates\nthe generated `package.json` to include all of the necessary properties for\nrunning the application on a PaaS provider.\n\n## Installing\n\nInstall Demeteorizer globally using npm\n\n    $ npm install -g demeteorizer\n\n## Usage\n\n    $ cd /path/to/meteor/app\n    $ demeteorizer [options]\n\n    -h, --help                 output usage information\n    -V, --version              output the version number\n    -o, --output \u003cpath\u003e        Output folder for converted application [.demeteorized]\n    -a, --architecture \u003carch\u003e  Build architecture to be generated\n    -d, --debug                Build the application in debug mode (don't minify, etc)\n    -j, --json \u003cjson\u003e          JSON data to be merged into the generated package.json\n\n## Windows Support\n\nDemeteorizer works on Windows; however, errors will occur when repeatedly\nrunning demeteorizer in Node.js versions\n[prior to 0.12.4](https://github.com/joyent/node/issues/3006).\n\nThe workaround on earlier versions on Node.js is to delete to generated\n`.demeteorized` directory before rerunning demeteorizer.\n\n## Meteor 0.8.1 and Below\n\nMeteor version 0.8.1 and below are only supported in Demeteorizer version\nv0.9.0 and Modulus CLI v1.1.0. For all other versions, use the latest version\nof Demeteorizer.\n\nThis is because the `bundle` command changed in 0.9 which makes backward\ncompatibility impossible. :(\n\n## Running Resulting Application\n\nMeteor applications make use of the following environment variables:\n\n1. `MONGO_URL='mongodb://user:password@host:port/databasename?autoReconnect=true'`\n1. `ROOT_URL='http://example.com'`\n1. `MAIL_URL='smtp://user:password@mailhost:port/' (optional)`\n1. `PORT=8080 (optional, defaults to 80)`\n\nNote that demeteorized applications still require a MongoDB connection in order\nto correctly run. To run your demeteorized application locally, you will need\nMongoDB [installed](http://docs.mongodb.org/manual/installation/) and running.\n\nRun the app:\n\n    $ cd /your/output/directory/bundle/programs/server\n    $ npm install\n    $ MONGO_URL=mongodb://localhost:27017/test PORT=8080 ROOT_URL=http://localhost:8080 npm start\n\n## Examples\n\nConvert the Meteor app in the current directory and output to `./.demeteorized`\n\n    $ demeteorizer\n\nConvert the Meteor app in the current directory and output to\n`~/meteor-app/converted`\n\n    $ demeteorizer -o ~/meteor-app/converted\n\nThe following steps will create a Meteor example app, convert it, and run it.\n\n    $ git clone https://github.com/meteor/leaderboard\n    $ cd leaderboard\n    $ demeteorizer\n    $ cd .demeteorized/bundle/programs/server\n    $ npm install\n    $ MONGO_URL=mongodb://localhost:27017/test PORT=8080 ROOT_URL=http://localhost:8080 npm start\n\nVisit http://localhost:8080 in your browser.\n\n## Modifying the Generated package.json\n\nThe `--json` option will allow you to pass arbitrary JSON data that will be\nadded to the generated package.json. You can use this to override settings in\npackage.json or to add arbitrary data.\n\n_settings.json_\n\n    {\n      \"key\": \"some-key-data\",\n      \"services\": {\n        \"some-service\": {\n          \"key\": \"another-key\"\n        }\n      }\n    }\n\nAdd settings.json data to the generated package.json\n\n    $ demeteorizer --json \"{ \\\"settings\\\": $(cat settings.json) }\"\n\nThe resulting package.json will have a `settings` property that includes the\nJSON from settings.json.\n\nYou can also use this to override settings\n\n    $ demeteorizer --json \"{ \\\"engines\\\": { \\\"node\\\": \\\"0.12.x\\\" } }\"\n\nThis will result in a package.json with the node engine set to 0.12.x.\n\n## Debug\n\nThe --debug option is passed to the meteor build command indicating to meteor\nthat the application should not be minified.\n\n    $ demeteorizer --debug\n\n## Support\n\nDemeteorizer has been tested with the current Meteor example apps. If you find\nan app that doesn't convert correctly, throw an issue in Github -\n[https://github.com/onmodulus/demeteorizer/issues](https://github.com/onmodulus/demeteorizer/issues)\n\n## Release History\n\nSee [releases](https://github.com/onmodulus/demeteorizer/releases).\n","funding_links":[],"categories":["Deployment"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXervoIO%2Fdemeteorizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FXervoIO%2Fdemeteorizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXervoIO%2Fdemeteorizer/lists"}