This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# example custom_data with 2 keys; one the changeset and the other the manually jsonified errors key. | |
{ | |
"chgset": { | |
"action": "update", | |
"changes": { | |
"dataimport_id": 423 | |
}, | |
"constraints": [], | |
"data": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"website_url": "https://www.meansdatabase.org", | |
"email_root_domain": "meansdatabase.org", | |
"zip": "20006-1631", | |
"tax_period": 201712, | |
"subsection": 3, | |
"street": "1629 K ST NW STE 300", | |
"status": 1, | |
"state": "DC", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule ApiInterface do | |
@moduledoc """ | |
An interface for calling api.service.com for argument "argument" | |
""" | |
# Suppose this function is throwing "no function clause matching in ApiInterface.make_some_call/1" | |
def make_some_call(argument) do | |
# Does this block go here? | |
Appsignal.Span.set_sample_data( | |
Appsignal.Tracer.root_span, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Elixir CI | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div id="app"> | |
<h1>{{ msg }}</h1> | |
<h2>The following was loaded over Graphql:</h2> | |
<h1>User: {{ user.name }}</h1> | |
</div> | |
</template> | |
<script> | |
import gql from 'graphql-tag' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div id="app"> | |
<h1>{{ msg }}</h1> | |
</div> | |
</template> | |
<script> | |
export default { | |
name: 'app', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// First we import the various pieces of Vue and Apollo. | |
import Vue from 'vue' | |
import { ApolloClient } from 'apollo-client' | |
import { InMemoryCache } from 'apollo-cache-inmemory' | |
import { HttpLink } from 'apollo-link-http' | |
import VueApollo from 'vue-apollo' | |
// Import our main app component, the top-level container for our app. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# snipped | |
# Change the watchers: line list to read like this one. | |
config :appname, AppnameWeb.Endpoint, | |
http: [port: 4000], | |
debug_errors: true, | |
code_reloader: true, | |
check_origin: false, | |
watchers: [ | |
node: ["node_modules/webpack/bin/webpack.js", "--watch", "--colors", | |
cd: Path.expand("../assets", __DIR__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path') | |
var webpack = require('webpack') | |
module.exports = { | |
entry: './src/app.js', | |
output: { | |
path: path.resolve(__dirname, '../priv/static/js'), | |
publicPath: '/dist/', | |
filename: 'app.js' | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "your-project-name", | |
"description": "A Vue.js, GraphQL, and Elixir project", | |
"version": "1.0.0", | |
"author": "You <you@you.com>", | |
"license": "MIT", | |
"private": true, | |
"scripts": { | |
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot", | |
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules" |
NewerOlder