lefnord / grape-starter Goto Github PK
View Code? Open in Web Editor NEWquickly create a Grape/Rack API skeleton
License: MIT License
quickly create a Grape/Rack API skeleton
License: MIT License
Waiting for the sequel branch to be OP & merged.
I'm on it.
Describe flags and options and maybe more details
Apparently, grape-starter requires the pry
gem, but it is not listed as a dependency in the gemspec file. The Gemfile
only lists pry
for development or test.
$ bundle exec grape-starter new eyaml
bundler: failed to load command: grape-starter (/Users/jxb2016/.rbenv/versions/2.5.5/bin/grape-starter)
LoadError: cannot load such file -- pry
/Users/jxb2016/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/grape-starter-1.2.2/bin/grape-starter:6:in `require'
/Users/jxb2016/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/grape-starter-1.2.2/bin/grape-starter:6:in `<top (required)>'
/Users/jxb2016/.rbenv/versions/2.5.5/bin/grape-starter:23:in `load'
/Users/jxb2016/.rbenv/versions/2.5.5/bin/grape-starter:23:in `<top (required)>'
My Gemfile
:
source 'https://rubygems.org'
ruby '~> 2.5'
gem 'hiera-eyaml', '~> 3.0'
gem 'grape'
gem 'grape-swagger'
gem 'grape-swagger-entity'
group :test do
gem 'rspec'
end
group :development do
gem 'rubocop'
gem 'grape-starter'
end
After the gem installation, the main command not work.
grape-starter new awesome_api
zsh: command not found: grape-starter
Terminal: iTerm2 with zsh
System: MacOS
Ruby Version: ruby 2.7.1p83
I am using the instrutions give for the Readme, is not generating the files, is not generating the database.yml
and another files:
├── .config
├── config
│ …
│ ├── database.yml
│ └── initializers
│ └── database.rb
…
├── db
│ └── migrations
…
Command:
grape-starter new new_project --orm=sequel
Grape-starter version: grape-starter version 1.2.4
Put it accessible at a configurable path, mounted along the generated API
Hello,
You should add awesome_print in our dependencies to avoid crash during the generation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.