evil_chat
Code for "Evil Front: Modern Front-end in Rails" 3-part tutorial: https://evilmartians.com/chronicles/evil-front-part-1
File Explorer
- channel.rb
- connection.rb
- chat_channel.rb
- .keep
- application_controller.rb
- auth_controller.rb
- chat_controller.rb
- application_helper.rb
- application_job.rb
- application_mailer.rb
- .keep
- application_record.rb
- message.rb
- new.html.erb
- show.html.erb
- application.html.erb
- mailer.html.erb
- mailer.text.erb
- bundle
- rails
- rake
- setup
- spring
- update
- webpack
- webpack-dev-server
- yarn
- development.rb
- production.rb
- test.rb
- application_controller_renderer.rb
- backtrace_silencers.rb
- cookies_serializer.rb
- filter_parameter_logging.rb
- inflections.rb
- mime_types.rb
- wrap_parameters.rb
- en.yml
- development.js
- environment.js
- production.js
- test.js
- application.rb
- boot.rb
- cable.yml
- database.yml.example
- environment.rb
- puma.rb
- routes.rb
- secrets.yml.example
- spring.rb
- webpacker.yml
- 20171210132138_create_messages.rb
- schema.rb
- seeds.rb
- cable.js
- chat.js
- icon.svg
- _auth-form.html.erb
- auth-form.css
- auth-form.js
- _chat.html.erb
- chat.css
- chat.js
- _message.html.erb
- message.css
- message.js
- icon.svg
- _message-form.html.erb
- message-form.css
- message-form.js
- _messages.html.erb
- messages.css
- messages.js
- _page.html.erb
- page.css
- page.js
- index.css
- index.js
- application.js
- .keep
- component_generator.rb
- .keep
- .keep
- 404.html
- 422.html
- 500.html
- apple-touch-icon-precomposed.png
- apple-touch-icon.png
- favicon.ico
- robots.txt
- .keep
- .keep
- .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
jsDelivrjsDelivr 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 ▼
brew install
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 ▼
bundle
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 ▼
rails
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 ▼
yarn
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):
