npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

invent

v0.0.6

Published

Vagrant Setup Generator

Downloads

9

Readme

invent

start your own invention.

Build Status

This is a tool to jumpstart your Node.js development in conjunction with MongoDB. Similar to the other generator tools out there, this is a vagrant environment generator.

tl;dr

Install

Then:

$ vagrant plugin install vagrant-omnibus
$ vagrant plugin install vagrant-berkshelf
$ npm install -g invent
$ invent my_app
$ cd my_app && vagrant up

SSH into the VM via vagrant ssh from the project directory.

Dependencies

So you want to do some application development via vagrant as your environment control, first install some dependencies to get you going:

Ruby v1.9 or higher is required for this to work.

Installation

Then install this module via:

$ npm install -g invent

Usage

Use via:

$ invent my_app
```

You can now serve applications out of 192.168.111.111 (as specified in your *Vagrantfile*)

How it works
* Copies over template files for package.json and the Vagrantfile
* Downloads a Trusty 64 Vagrant basebox from Ubuntu Cloud Images
* Downloads and uncompresses required chef cookbooks via Berkshelf

Installs 
* Ubuntu 14.04
    * Node.js
    * npm
    * MongoDB

###### Example webserver
* SSH into the box - `$ vagrant ssh`
* Create the file app.js - `$ vim app.js`

```javascript
/* app.js */
var http = require('http');
var server = http.createServer(function (request, response) {
    response.writeHead(200, {"Content-Type": "text/plain"});
    response.end("Start your own invention\n");
});
server.listen(80);
console.log("Server running at http://127.0.0.1:80/");
```

* From the guest machine, run the app - `sudo node app.js` 
* From the host machine, visit - `192.168.111.111`

## API
To access the API, check out the [bin/invent](bin/invent) file for a primer.

### Class Invent
Main class for the Invent module

### Invent.create([options])
Triggers the invent class to create a new project

`@options`- possible fields:

`name`: String- name of project to build. Default ```'invent'```

`color`: Boolean- specify color output. Default ```true```

`force`: Boolean- force generation on non-empty directory. Default ```false```

## Issues
There is a known issue with Chef Development Kit installation in regards to Nokogiri on OSX, the Nokogiri team has the solution documented [here](http://www.nokogiri.org/tutorials/installing_nokogiri.html)


If you're having any problems getting this working or have a question / comment, consider submitting an [issue](https://github.com/zahid/invent/issues/new)