Electrify - Compiling Meteor as a Locally Installable App
Installing Electrify for a Meteor application
Electron ports HTML web applications to native applications for a range of devices, including creating native desktop applications. It's also very easy to get started!
To begin, we must have
meteor installed. Familiarity with these tools is vital for working with Meteor, so make sure you know about these things first.
electronis what we're using! Read more here.
electrifyis a tool for packaging Meteor apps. Read mode here.
Other requirements for installing and using Electrify with Meteor
There are many ways to install Meteor, see here.
There are many ways to install, depending on your OS. Find out which way you need here.
npm should be bundled with the
nodejs installation. Check it is by running the command
npm -v after installing
npmis the Node Package Manager. It's a huge collection of open source modules that you can easily add into your Node projects. Read more here.
Using Electrify on a Meteor Application
Let's download a Meteor Todos example project, using a Linux shell (command line) script, to test out Electrifying a project for the first time:
Requirements for this section:
There are many ways to install Git. Check them out here.
gitis a version control system for files. They can be stored remotely (i.e., online) in public repositories (GitHub being a rather famous one) or private repositories (BitBucket provides limited free private repositories, as an example). Read more [here].
We should now have a project folder named 'meteor-todos', at the location specified within the TODOSPATH parameter. We've also changed directory (
cd) into the project folder, so let's add Electrify to this project!
That's right - a single word command, and our project is ready. Permissions may cause errors for you when trying to run
electrify as a command, in wihch case try
sudo electrify to override the permissions.
However, do attempt to resolve these permission issues - it is not good practice to unnecessarily
sudo (which I'd elaborate upon, but I could write a whole other topic on why that is!)