Skip to content

Commit

Permalink
Funtional microservice
Browse files Browse the repository at this point in the history
  • Loading branch information
Fiser12 committed Mar 16, 2018
1 parent 9e9bcae commit 672f849
Show file tree
Hide file tree
Showing 96 changed files with 8,997 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This file is part of the Php DDD Standard project.
#
# Copyright (c) 2017-present LIN3S <info@lin3s.com>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @author Beñat Espiña <benatespina@gmail.com>
# @author Gorka Laucirica <gorka.lauzirika@gmail.com>

.DS_Store
/.editorconfig
/.lin3s_cs.yml
/.php_cs*
/.phpspec_cs*
/.web-server-pid
/composer.phar
/parameters.yml
/src/Infrastructure/Ui/Assets/.eslint.yml
/src/Infrastructure/Ui/Assets/.scss_lint.yml
/src/Infrastructure/Ui/Assets/node_modules
/src/Infrastructure/Ui/Http/Symfony/.htaccess
/src/Infrastructure/Ui/Http/Symfony/bundles
/src/Infrastructure/Ui/Http/Symfony/robots.txt
/src/Infrastructure/Ui/manifest.json
/var/bootstrap.php.cache
/vendor
src/Infrastructure/Ui/Assets/.eslintrc.js
src/Infrastructure/Ui/Assets/.stylelintrc.js

/var/sessions/dev/*
!var/sessions/dev/.gitkeep
/var/sessions/prod/*
!var/sessions/prod/.gitkeep
/var/logs/*
!var/logs/.gitkeep
/var/cache/*
!var/cache/.gitkeep
/var/jwt/*
!var/jwt/.gitkeep

77 changes: 77 additions & 0 deletions .lin3s_cs.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# This file is part of the Php DDD Standard project.
#
# Copyright (c) 2017-present LIN3S <info@lin3s.com>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @author Beñat Espiña <benatespina@gmail.com>

parameters:
enabled:
- twigcs
- phpcsfixer
- stylelint
- eslint

name: Php DDD Standard project
type: project
year: 2017-present
author: LIN3S
email: info@lin3s.com

phpmd_path: src
phpmd_rules:
- controversial
- unusedcode
- codesize
- naming

twigcs_path: src/Infrastructure/Ui/Templates/Twig

phpcsfixer_path: src
phpcsfixer_test_path: tests
phpcsfixer_file_location: .

stylelint_path: src/Infrastructure/Ui/Assets/scss
stylelint_file_location: src/Infrastructure/Ui/Assets
stylelint_exclude: []
stylelint_rules: []

eslint_path: src/Infrastructure/Ui/Assets/js
eslint_file_location: src/Infrastructure/Ui/Assets
eslint_exclude: []
eslint_rules:
plugins:
- babel
- react
- class-property
rules:
babel/semi: [error, always]
react/display-name: off
react/forbid-prop-types: off
react/jsx-boolean-value: off
react/jsx-closing-bracket-location: off
react/jsx-curly-spacing: off
react/jsx-indent-props: off
react/jsx-max-props-per-line: off
react/jsx-no-duplicate-props: error
react/jsx-no-literals: off
react/jsx-no-undef: error
jsx-quotes: error
react/jsx-sort-props: error
react/jsx-uses-react: error
react/jsx-uses-vars: error
react/no-danger: error
react/no-did-mount-set-state: error
react/no-did-update-set-state: error
react/no-direct-mutation-state: error
react/no-set-state: off
react/no-unknown-property: error
react/prop-types: off
react/react-in-jsx-scope: off
react/require-extension: off
react/self-closing-comp: off
react/sort-comp: off
react/sort-prop-types: error
react/wrap-multilines: off
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2017-present LIN3S

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12 changes: 12 additions & 0 deletions behat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
imports:
- tests/Behat/Resources/profiles.yml
- tests/Behat/Resources/suites.yml

default:
autoload:
'': %paths.base%/tests
suites:
default:
paths:
- %paths.base%/tests/Behat/Resources/features
contexts: [ Behat\BaseContext ]
106 changes: 106 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"require": {
"php": "^7.1",
"ajgl/simple-bus-query-bus": "^0.1.0",
"bengor-user/doctrine-orm-bridge-bundle": "^1.2.0",
"bengor-user/simple-bus-bridge-bundle": "^1.0.1",
"bengor-user/swift-mailer-bridge-bundle": "^1.0.1",
"bengor-user/symfony-routing-bridge-bundle": "^1.1",
"bengor-user/symfony-security-bridge-bundle": "^1.0.1",
"bengor-user/twig-bridge-bundle": "^1.0.1",
"bengor-user/user-bundle": "^0.8.5",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-cache-bundle": "^1.2",
"doctrine/doctrine-migrations-bundle": "^1.2",
"doctrine/orm": "^2.5",
"facebook/graph-sdk": "^5.6",
"incenteev/composer-parameter-handler": "^2.0",
"league/oauth2-facebook": "^2.0",
"lexik/jwt-authentication-bundle": "^2.4",
"lin3s/distribution": "^4.3",
"lin3s/shared-kernel": "^0.6.0",
"sensio/distribution-bundle": "^5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"smart-core/accelerator-cache-bundle": "^1.2",
"symfony/monolog-bundle": "^2.8",
"symfony/polyfill-apcu": "^1.0",
"symfony/swiftmailer-bundle": "^2.3",
"symfony/symfony": "3.3.*"
},
"require-dev": {
"behat/behat": "^3.4",
"lin3s/cs": "^0.6",
"phpspec/phpspec": "^3.2"
},
"scripts": {
"symfony-scripts": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
],
"lin3scs-scripts": [
"LIN3S\\CS\\Composer\\Hooks::buildDistFile",
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"LIN3S\\CS\\Composer\\Hooks::addHooks",
"LIN3S\\CS\\Composer\\Hooks::addFiles"
],
"cs": [
"php-cs-fixer fix --config-file=.php_cs",
"php-cs-fixer fix --config-file=.phpspec_cs"
],
"test": "phpspec run",
"post-install-cmd": [
"@symfony-scripts"
],
"post-update-cmd": [
"@symfony-scripts"
]
},
"autoload": {
"psr-4": {
"Session\\": "src/"
},
"exclude-from-classmap": [
"/Tests/",
"/test/",
"/tests/"
]
},
"autoload-dev": {
"psr-4": {
"Spec\\": "tests/Spec",
"Behat\\": "tests/Behat"
}
},
"config": {
"sort-packages": true
},
"extra": {
"symfony-app-dir": "src/Infrastructure/Symfony/Framework",
"symfony-bin-dir": "src/Infrastructure/Ui/Cli/Symfony/",
"symfony-var-dir": "var",
"symfony-web-dir": "src/Infrastructure/Ui/Http/Symfony/",
"symfony-tests-dir": "tests",
"symfony-assets-install": "relative",
"incenteev-parameters": [
{
"file": "parameters.yml",
"dist-file": "parameters.yml.dist"
},
{
"file": ".lin3s_cs.yml",
"dist-file": ".lin3s_cs.yml.dist"
}
],
"scripts-dev": {
"post-install-cmd": [
"@lin3scs-scripts"
],
"post-update-cmd": [
"@lin3scs-scripts"
]
}
}
}
Loading

0 comments on commit 672f849

Please sign in to comment.