Codefunk - Node-Gypsi: The Intro
Im starting a node based process management utility called node-gypsi (sounded cool is all i know). Itll use monit to monitor process and manage application dependencies. For example, say you have a node.js application which requires mongodb, elastic search, redis-server to be up and running before it starts up, gypsi will be able start these requirements up and using monit, monitor these services before starting your node application. This way, all you need is one command to run your app if it is dependent on a few other services.
Im going to try and be detailed and take you through every step I take to get node-gypsi working. node-gypsi is also available on github so you can fork and contribute.
Requirements
INQUIRER: I needed a library that would create a wizard like CLI for Node-Gypsi. So users really don't need to edit configuration files directly. The wizards gets the right answers to necessary questions and sets up Node-Gypsi and Monit properlly. After much digging and testing, Im satisfied with Inquirer.
JSONFile: This should help me read and write configuration files which will be "json" for Node-Gypsi.
Before we proceed, I just found pm2. Looks great and pretty advanced. I am hoping Node-Gypsi can appeal to a simpler, basic audience.
..still in progress
UPDATE:
Ive completed the first version of Node-Gypsi.
Ill have a small tutorial on how to use it in a followup post. Im sorry I couldn't do a Codefunk on how I built it. 9-5 kept me busy.













