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

grasshopper-cli

v0.1.22

Published

Command line interface that manages the grasshopper data management system.

Downloads

11

Readme

Grasshopper CLI

Grasshopper's command line interface

Use Grasshopper to drastically speed up development for distributed systems. Support your clients better. For more information about the grasshopper project click here.

Prerequisites

To build a project you will have to install the following:

  • Node.js, a platform for easily building fast, scalable network applications.

  • MongoDB, an open-source document database that Grasshopper uses for data storage.

  • Grunt, the JavaScript task runner

npm install -g grunt-cli
  • bower, a package manager for the web
npm install -g bower
  • Sass: Syntactically Awesome Style Sheets. Click here for installation instructions.

  • Sass Globbing Plugin (used to compile the admin): Sass globbing allows you to import many sass or scss files in a single import statement.

gem install sass-globbing
  • Sass CSS Importer (used to compile the admin): The Sass CSS Importer allows you to import a CSS file into Sass.
gem install sass-css-importer
  • Bundler: Bundler provides a consistent environment for Ruby projects by tracking and installing the exact gems and versions that are needed.
gem install bundler

Installation

Install this npm globally to access Grasshopper utilities anywhere on your system.

npm install -g grasshopper-cli

Commands

  • grasshopper fly - Automated Grasshopper setup. Scaffolding will be created for this project and files could be overwritten.

  • grasshopper jump - Grasshopper setup will walk you through installing Grasshopper dependencies and generate all necessary config files.

  • grasshopper upgrade - Get the latest version of Grasshopper and rebuild into your existing project. Latest NPMs will be downloaded and the admin application will be recompiled using your existing configuration files. You should read the release notes for any changes that need to be made to your config files. Release notes can be found at https://github.com/Solid-Interactive/grasshopper-api-js.

  • grasshopper build - Recompile your admin application using your existing configuration files.

Click here to watch a video of installing and running a grasshopper project.

grasshopper fly

Contributions

If you have a common pattern that involves Grasshopper, submit your recipe (npms, scaffolding, data). If it would be useful to a large enough audience it can be added into this project.

Submit recommendations and issues to: https://github.com/Solid-Interactive/grasshopper-cli/issues

Troubleshooting

Ensure that you have the latest grasshopper-cli installed. To update, run npm update -g grasshopper-cli.

Ensure that you are using ruby 2.0.0. With RVM you can do rvm install 2.0.0 && rvm use 2.0.0. Also, ensure that you have bundler installed. type gem install -g bundler.

If you get this error after running grasshopper fly twice for the same project: insertDocument :: caused by :: 11000 E11000 duplicate key error index: somedatabase.content.$_id_ dup key: { : ObjectId('53c85bb59c38840000cae250') } You need to clear out your mongo databases. Enter the mongo repl with mongo then type show dbs to list out the local mongo databases. Find the database giving you the errors ( in the above error the database name is 'somedatabase') then type use <database name>. Once you are using the proper database, type db.dropDatabase() to drop it. This will let you run grasshopper fly again without duplicate key errors.

If for some reason building the grasshopper-admin fails then you can run bundle install manually. Just enter this command starting from your new project folder.

./node_modules/grasshopper-admin$ bundle install

License

grasshopper-cli is released under a MIT license.