Skip to content

Instantly share code, notes, and snippets.

View Exellin's full-sized avatar

Shawn Carnegie Exellin

View GitHub Profile
@systemnate
systemnate / VueTesting.md
Last active August 8, 2017 14:19
Single File Component Testing with Vue and Rails (Karma, Jasmine, Avoriaz)

Unit Testing

This wiki will demonstrate how to setup and test Vue components. I am assuming that Vue is already setup in the project using the webpacker gem.

This guide will use Karma, Jasmine, and Avoriaz for testing.

Karma - A test runner for unit tests.

Karma is essentially a tool which spawns a web server that executes source code against test code for each of the browsers connected. The results of each test against each browser are examined and displayed via the command line to the developer such that they can see which browsers and tests passed or failed.

Jasmine - A testing framework.

@danielchappell
danielchappell / route_hooks.js
Last active February 27, 2023 13:34
Ember.Route hook order
import Ember from 'ember';
// Ember 1.10
export default Ember.Route.extend({
//---fire in order on route enter---
beforeModel(transition) {
//empty by default
@p1nox
p1nox / postgresql_configuration_on_ubuntu_for_rails.md
Last active July 20, 2024 11:55
PostgreSQL configuration without password on Ubuntu for Rails

Abstract

You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.

Install Postgre packages

  • postgresql
  • postgresql-client
  • libpq-dev