directory structure:
/my-project
/public
index.php
/src
/Controllers
UsersController.php
/test
| server { | |
| listen 80; | |
| listen 443 ssl; | |
| server_name api.exampel.com; | |
| root "/home/vagrant/Code/stryve-api/public"; | |
| index index.html index.htm index.php; | |
| charset utf-8; |
| // file exists in go-ku/flag/flag.go | |
| package flag | |
| import "flag" | |
| // Flagset inherits the default FlagSet | |
| type Flagset struct { | |
| *flag.FlagSet | |
| } |
| APP_ENV=testing | |
| APP_KEY=SomeRandomString | |
| DB_CONNECTION=testing | |
| DB_TEST_USERNAME=root | |
| DB_TEST_PASSWORD= | |
| CACHE_DRIVER=array | |
| SESSION_DRIVER=array | |
| QUEUE_DRIVER=sync |
| import axios from "axios"; | |
| export default async function () { | |
| const { data: { id } } = await axios.get("//localhost:3000/id"); | |
| const { data: { group } } = await axios.get("//localhost:3000/group"); | |
| const { data: { name } } = await axios.get(`//localhost:3000/${group}/${id}`); | |
| console.log(name); // Michał | |
| } |
directory structure:
/my-project
/public
index.php
/src
/Controllers
UsersController.php
/test
Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.
The following steps assume you've got a set-up like mine, where:
| import React, { Component } from 'react' | |
| import PropTypes from 'prop-types' | |
| import ReactSelect from 'react-select' | |
| class Select extends Component { | |
| constructor(props) { | |
| super(props) | |
| this.state = { | |
| name: this.props.name, | |
| value: this.props.value, |
| import React, { Component } from 'react' | |
| import PropTypes from 'prop-types' | |
| import Select from '../elements/Select' | |
| class SelectFormGroup extends Component { | |
| constructor(props) { | |
| super(props) | |
| this.state = { | |
| name: this.props.name, | |
| label: this.props.label, |
| import React, { Component } from 'react' | |
| import FormData from './RequestQuoteData' | |
| import ButtonGroup from './groups/ButtonGroup' | |
| import InputFormGroup from './groups/InputFormGroup' | |
| import SelectFormGroup from './groups/SelectFormGroup' | |
| import DatepickerFormGroup from './groups/DatepickerFormGroup' | |
| class RequestQuoteForm extends Component { | |
| constructor(props) { | |
| super(props) |
| #=========================== Filebeat prospectors ============================= | |
| filebeat.prospectors: | |
| - input_type: log | |
| document_type: mariadb-slowlogs | |
| paths: | |
| - "/var/log/mysql/mariadb-slow.log" | |
| multiline: | |
| pattern: '^# User@Host: ' | |
| negate: true | |
| match: after |