Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grape-cli

Package Overview
Dependencies
Maintainers
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grape-cli

  • 0.2.5
  • Rubygems
  • Socket score

Version published
Maintainers
4
Created
Source

grape-cli Build Status Code Climate Gem Version

Grape-CLI is a gem for bootstraping standalone Grape application. It is heavily inspired by Rails/Ember generators.

Installation

Add this line to your application's Gemfile:

gem 'grape-cli'

And then execute:

$ bundle

Or install it yourself as:

$ gem install grape-cli

Usage

###New application Create new Grape app in current directory with provided application name

$ grape new application_name

For new command you can provide multiple options:

###Test framework

$ grape new application_name --test=minitest

will create new application with minitest as test framework, running new command without specifying --test option will setup application with RSpec as it's default one.

###Database

$ grape new application_name --database=postgres

will create new application with postgres as database, running new command without specifying --database option will setup application with sqlite as it's default one.

###Start application server

$ cd application_name
$ grape server

or

$ grape s

This command support all rackup parameters.

Go to http://localhost:9292/

###Start application console

$ grape console

or

$ grape c

###Run your application tets

$ grape test

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/elpassion/grape-cli. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 09 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc