bridgetownrb / bridgetown-plugin-nano

One-step commands to install and configure a Rails-based Nano API backend for Bridgetown

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

May 2021 Update:

I've decided to suspend work on a Rails-specific integration for Bridgetown until further notice. Bridgetown does currently have an outstanding PR for switching to Puma/Rack/Roda for essential routes, and you absolutely can mount a Rails API right onto that however you wish. But in light of recent events, I will not personally be working on a Rails integration solution.


bridgetown-plugin-nano (WIP)

One-step commands to install and configure a Rails-based Nano API backend for Bridgetown

Installation

Run this command to add this plugin to your site's Gemfile:

$ bundle add bridgetown-plugin-nano -g bridgetown_plugins

Usage

$ bundle exec bridgetown nano new

To deploy to production you'll need a SECRET_KEY_BASE env var. You can generate one with this command:

$ bundle exec bridgetown nano exec secret

Testing

  • Run bundle exec rake to run the test suite
  • Or run script/cibuild to validate with Rubocop and test together.

Contributing

  1. Fork it (https://github.com/bridgetownrb/bridgetown-nano-plugin/fork)
  2. Clone the fork using git clone to your local development machine.
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request

About

One-step commands to install and configure a Rails-based Nano API backend for Bridgetown

License:MIT License


Languages

Language:Ruby 95.5%Language:Shell 2.6%Language:HTML 1.9%