https://github.com/intridea/grape

Is there a way to automatically generate a template for an application which will use grape to provide REST like interfaces. I am looking for something like "rails new app" which will provide me the skeleton to build on. If not what should I be using?

有帮助吗?

解决方案

Not that I know of, but there are several example apps with different stacks and functionality on their wiki.

You can mix and match from what you see there, or just clone one of them to get started.

Also, Grape's DSL itself will guide you towards REST. You declare resources and then use the http verbs to define the requests.

其他提示

grape-starter seems to be what you're looking for.

Install the gem (gem install grape-starter) and create your new API with grape-starter new awesome_api.

For more options, such as choosing an ORM, or setting the prefix, use grape-starter -h. I recommend to have a look on the README.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top