This tutorial uses the "Sample hapi.js REST API" project.
Take a look at: https://github.com/agendor/sample-hapi-rest-api/
##Topics
- Introduction
- Installing Node.js
- Installing MySQL
- Setting-up the project
#!/bin/sh | |
# ./bin/behat-ci.sh | |
project_dir=$(dirname $(readlink -f $0))"/.." | |
logs_path=${1:-"./build/logs/behat"} | |
reports_path=${2:-"./build/behat"} | |
cd $project_dir |
# Remove all stopped containers. | |
docker rm $(docker ps -a -q) | |
# Remove all untagged images | |
docker rmi $(docker images | grep "^<none>" | awk "{print $3}") |
This tutorial uses the "Sample hapi.js REST API" project.
Take a look at: https://github.com/agendor/sample-hapi-rest-api/
##Topics
import React, { Component, PropTypes } from 'react'; | |
class HelloWorld extends Component { | |
render() { | |
return (<div>Hello, {this.props.name}!</div>); | |
} | |
} | |
HelloWorld.propTypes = { | |
name: PropTypes.string.isRequired, |
/** | |
* Very simple Lambda which just returns a string on invocation. | |
*/ | |
exports.handler = function(event, context) { | |
context.succeed('Hello, World!'); | |
}; |
<?php | |
require_once __DIR__.'/vendor/autoload.php'; | |
use Aws\Lambda\LambdaClient; | |
$client = LambdaClient::factory([ | |
'version' => 'latest', | |
// The region where you have created your Lambda | |
'region' => 'eu-west-1', |
I hereby claim:
To claim this, I am signing this object:
import React from 'react'; | |
const Application = (props) => ( | |
<div>Hello, {props.name}!</div> | |
); | |
export default Application; |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>php-react-lamda-example</title> | |
</head> | |
<body> | |
<div id="root"></div> | |
<script> | |
window.__INITIAL_PAYLOAD__ = { name: "World" }; | |
</script> |