gem install rails
rails new my_app -T
{ | |
"name": "rails-proxy", | |
"version": "0.0.1", | |
"dependencies": { | |
"http-proxy": "*", | |
"node-static": "*" | |
}, | |
"engines": { "node": ">= 0.4.4" } | |
} |
grant codebase "file:${java.home}/../lib/tools.jar" { | |
permission java.security.AllPermission; | |
}; |
WRITER_SCHEMA = <<-JSON | |
{ "type": "record", | |
"name": "User", | |
"fields" : [ | |
{"name": "username", "type": "string"}, | |
{"name": "age", "type": "int"}, | |
{"name": "verified", "type": "boolean", "default": "false"} | |
]} | |
JSON |
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: docker:17.06.0-ce-git | |
steps: | |
- checkout | |
- setup_remote_docker | |
- run: | |
name: Install Docker Compose |
// npm i js-cookie --save | |
import axios from 'axios' | |
import Cookies from 'js-cookie' | |
const api = axios.create({ | |
headers: { | |
'Content-Type': 'application/json', | |
'X-CSRF-TOKEN': Cookies.get('csrf_token') | |
}) |