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
<?php | |
namespace Ecom\Price\Model; | |
use Makasim\Values\ValuesTrait; | |
class Price | |
{ | |
use ValuesTrait; | |
/** |
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
{ | |
"process": { | |
"schema": "http:\/\/pvm.forma-pro.com\/schemas\/Process.json", | |
"id": "749d7410-e1b0-4f27-aa35-97d09018754e", | |
"companyId": "12356692-eaac-4893-8e5d-9c2059fb4689", | |
"campaignId": "3569b06f-2210-48f4-853d-9a0d35c08182", | |
"nodes": { | |
"ad2fcc3c-ee83-40cc-9d76-cdb21d573098": { | |
"schema": "http:\/\/pvm.forma-pro.com\/schemas\/Node.json", | |
"id": "ad2fcc3c-ee83-40cc-9d76-cdb21d573098", |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous"> | |
<title>PVM UI</title> | |
</head> |
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
FROM nginx:1.15 | |
WORKDIR /var/www | |
COPY /nginx.conf /etc/nginx/conf.d/app.conf | |
ADD ./public /var/www | |
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
#!/usr/bin/env bash | |
set -x | |
set -e | |
if [[ -z "$DOTOKEN" ]]; then | |
# get it from https://cloud.digitalocean.com/settings/security | |
echo "Must provide DOTOKEN in environment" 1>&2 | |
exit 1 | |
fi |
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
<?php | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use App\Model\Order; | |
use function Makasim\Yadm\get_object_id; | |
use function Makasim\Values\get_values; | |
/** @var ContainerInterface $container */ | |
$storage = $container->get('yadm')->getStorage(Order::class); |
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
# config/packages/yadm.yaml | |
yadm: | |
mongo_uri: 'mongodb://localhost:27017/db_name' | |
models: | |
order: | |
class: 'App\Model\Order' | |
collection: 'order' |
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
<?php | |
// src/Model; | |
namespace App\Model; | |
use function Makasim\Values\set_value; | |
use function Makasim\Values\get_value; | |
class Order | |
{ | |
private $values = []; |
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
<?php | |
namespace Acme; | |
use function Makasim\Values\get_values; | |
use function Makasim\Values\set_value; | |
use function Makasim\Values\get_value; | |
use function Makasim\Values\set_values; | |
class Model |
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
<?php | |
use InfluxDB\Client; | |
use InfluxDB\Database; | |
use InfluxDB\Point; | |
include_once __DIR__ .'/vendor/autoload.php'; | |
$database = Client::fromDSN(getenv('INFLUXDB_DSN')); |