evil_chat

(★ 80)

Code for "Evil Front: Modern Front-end in Rails" 3-part tutorial: https://evilmartians.com/chronicles/evil-front-part-1

File Explorer

  • .babelrc
  • .browserslistrc
  • .eslintrc
  • .gitignore
  • .postcssrc.yml
  • .stylelintrc
  • config.ru
  • Gemfile
  • Gemfile.lock
  • package.json
  • Procfile
  • Procfile.dev
  • Rakefile
  • README.md
  • yarn.lock

# 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.

🔍

brew install

View Details ▼

Install a Homebrew formula or cask.

brew install {{formula|cask}}

Install a formula/cask:

brew install {{[-s|--build-from-source]}} {{formula}}

Build and install a formula from source (dependencies will still be installed from bottles):

brew install {{[-n|--dry-run]}} {{formula|cask}}

Download the manifest, print what would be installed but don't actually install anything:

🔍

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`:

🔍

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):

// repository documentation