Introduction
Last updated
Last updated
As a micro-services application grows, so does the need for a clear, coherent, and easy way to manage the set-up processes of all the components that make up the application.
Two existing solutions to this problem involve containers and virtual machines. For a comparison between the two, checkout Pete Brey's article:
Devly is neither a containerization nor a virtual machine solution. It is a command line utility made up of composeable plugins built on node and npm. Each plugin abstracts out the low-level details of an application's set-up process and rolls it into a cli command.
With Devly, developers can leverage the power of their host machine and avoid the complexities of mounting files and folders into guest operating systems.
Create a separate repo for your app set-up cli tool.
Run npm init
Run npm install --save @devly/devly-store @devly/devly-cli winston redux
manifests
directoryManifest files export a javascript object that serves as the initial state for the corresponding plugin.
plugins
directoryThe plugins directory consists of files that compose the manifest with the corresponding action creator which then gets dispatched to the devly store. Note it is recommened to use a barrel file to manage all of your apps plugins.
Make sure to install your plugin as a dependency first.
Update your package.json
to include a bin object.
Make sure ./index.js
includes the hashbang at the top of the file; and requires ./plugins
and ./cli
barrels.
Finally, run npm install -g
from the project's root directory.
Here is a partial list:
All Devly plugins and utilities are published to npm under the @devly
scope. For a full list, visit .