api_maker

(★ 9)

A Rails gem for generating a JavaScript API automatically based on your ActiveRecord models.

File Explorer

  • .gitignore
  • AGENTS.md
  • bump-and-publish-all-npm.rb
  • link-all.sh
  • peak_flow.yml
  • README.md
  • run-system-spec.sh

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

bundle

View Details ▼

Dependency manager for the Ruby programming language.

bundle install

Install all gems defined in the `Gemfile` expected in the working directory:

bundle exec {{command}} {{arguments}}

Execute a command in the context of the current bundle:

bundle update

Update all gems by the rules defined in the `Gemfile` and regenerate `Gemfile.lock`:

🔍

gem

View Details ▼

A package manager for the Ruby programming language.

gem search {{regex}} {{[-a|--all]}}

Search for remote gem(s) and show all available versions:

gem install {{gem_name}}

Install the latest version of a gem:

gem install {{gem_name}} {{[-v|--version]}} {{1.0.0}}

Install a specific version of a gem:

🔍

rails

View Details ▼

A server-side MVC framework written in Ruby.
Some subcommands such as `generate` have their own usage documentation.

rails new "{{project_name}}"

Create a new rails project:

rails generate scaffold Post title:string body:text

Generate a scaffold for a model named Post, predefining the attributes title and body:

rails db:migrate

Run migrations:

🔍

yarn

View Details ▼

JavaScript and Node.js package manager alternative.

yarn global add {{module_name}}

Install a module globally:

yarn install

Install all dependencies referenced in the `package.json` file (the `install` is optional):

yarn add {{module_name}}@{{version}}

Install a module and save it as a dependency to the `package.json` file (add `--dev` to save as a dev dependency):

🔍

xvfb-run

View Details ▼

Run a command in a virtual X server environment.

xvfb-run {{command}}

Run the specified command in a virtual X server:

xvfb-run {{[-a|--auto-servernum]}} {{command}}

Try to get a free server number, if the default (99) is not available:

xvfb-run {{[-s|--server-args]}} "{{-screen 0 1024x768x24}}" {{command}}

Pass arguments to the Xvfb server:

// repository documentation