New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Training render #7

Merged
merged 12 commits into from Aug 20, 2018
Copy path View file
@@ -9,10 +9,16 @@ APP_SECRET=67d829bf61dc5f87a73fd814e2c9f629
###< symfony/framework-bundle ###

###> doctrine/doctrine-bundle ###
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For a sqlite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# Set "serverVersion" to your server version to avoid edge-case exceptions and extra database calls
DATABASE_URL=sqlite:///%kernel.project_dir%/data/database.sqlite
# See
# - http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# - http://symfony.com/doc/current/configuration/external_parameters.html#environment-variables
DATABASE_HOST=127.0.0.1
DATABASE_PORT= # no port, it will fail otherwise
DATABASE_USER= # complete
DATABASE_PASSWORD= # complete
DATABASE_DBNAME=open_training
DATABASE_CHARSET=utf8
DATABASE_URL="mysql://$DATABASE_USER:$DATABASE_PASSWORD@$DATABASE_HOST:$DATABASE_PORT/$DATABASE_DBNAME?charset=$DATABASE_CHARSET"
###< doctrine/doctrine-bundle ###

###> symfony/swiftmailer-bundle ###
Copy path View file
@@ -1,23 +1,34 @@
# Open Trainings
========================

Open and free platform for organizing trainings.

## Setup

We cover all you need to organize a training, with a trainer and attendees:

- [ ] create training
- [ ] create a new term for the training
- [ ] let people buy and attend a training
- [ ] automated invoicing
- [ ] automated emails to all parties
- compute provision for the trainer and the organizer
- [x] compute provision for the trainer and the organizer

## Instal

```bash
git remote add origin ...
git pull
git clone ...
cd open-trainings
composer update
```

Then rename `.env.dist` to `.env` and complete variables:

This comment has been minimized.

@JanMikes

JanMikes Sep 24, 2018

Collaborator

Rename is not enough, copying is the way - Instruction should be cp .env.dist .env and edit it


```bash
# create database
bin/console doctrine:schema:create
# dump css and js from all bundles
bin/console assets:install --env=prod --no-debug
composer adminer-install
```
Copy path View file
@@ -3,10 +3,12 @@
"license": "MIT",
"require": {
"php": "^7.1",
"ext-pdo_sqlite": "*",

"ext-pdo": "*",
"ext-pdo_mysql": "*",
"ext-intl": "*",
"doctrine/doctrine-bundle": "^1.9",
"doctrine/orm": "^2.6",
"doctrine/orm": "2.7.x-dev",
This conversation was marked as resolved by JanMikes

This comment has been minimized.

@TomasVotruba

TomasVotruba Aug 18, 2018

Member

This is needed due to ClassLoader bug in 2.6

"easycorp/easyadmin-bundle": "^1.17",
"sensio/framework-extra-bundle": "^5.0",
"symfony/asset": "^4.2",
@@ -28,28 +30,28 @@
"require-dev": {
"automattic/phpcs-neutron-ruleset": "^1.8",
"object-calisthenics/phpcs-calisthenics-rules": "^3.3",
"phpstan/phpstan": "^0.10.2",
"phpstan/phpstan": "^0.10.3",
"phpunit/phpunit": "^7.2",
"rector/rector": "@dev",
"shopsys/http-smoke-testing": "@dev",
"slam/php-cs-fixer-extensions": "^1.16",
"symfony/browser-kit": "^4.2",
"symfony/debug-bundle": "^4.2",
"symfony/maker-bundle": "^1.5",
"symfony/web-profiler-bundle": "^4.2",
"symfony/web-server-bundle": "^4.2",
"symplify/coding-standard": "^4.6",
"symplify/easy-coding-standard": "^4.5"
"symplify/easy-coding-standard": "^4.6"
},
"autoload": {
"psr-4": {
"App\\": "src",
"OpenLecture\\Provision\\": "packages/Provision/src"
"OpenTraining\\Provision\\": "packages/Provision/src",
"OpenTraining\\Registration\\": "packages/Registration/src",
"OpenTraining\\BetterEasyAdmin\\": "packages/BetterEasyAdmin/src"
}
},
"autoload-dev": {
"psr-4": {
"OpenLecture\\Provision\\Tests\\": "packages/Provision/tests"
"OpenTraining\\Provision\\Tests\\": "packages/Provision/tests"
},
"classmap": ["vendor/automattic/phpcs-neutron-standard/NeutronStandard"]
},
@@ -63,13 +65,7 @@
"phpstan": "vendor/bin/phpstan analyse src packages --level max",
"adminer-install": [
"mkdir -p public/adminer",
"wget https://raw.githubusercontent.com/vrana/adminer/master/plugins/plugin.php -O public/adminer/plugin.php",
"wget https://raw.githubusercontent.com/vrana/adminer/master/plugins/login-password-less.php -O public/adminer/login-password-less.php",
"wget https://raw.githubusercontent.com/vrana/adminer/master/adminer/sqlite.php -O public/adminer/index.php",
"wget https://github.com/vrana/adminer/releases/download/v4.6.3/adminer-4.6.3-en.php -O public/adminer/adminer.php",
"sed -i 's#index.php#adminer.php#g' public/adminer/index.php",
"sed -i 's#../plugins/##g' public/adminer/index.php",
"sed -i 's#PASSWORD_DEFAULT#PASSWORD_ARGON2I#g' public/adminer/index.php"
"wget https://github.com/vrana/adminer/releases/download/v4.6.3/adminer-4.6.3-en.php -O public/adminer/index.php"
]
},
"config": {
Oops, something went wrong.
ProTip! Use n and p to navigate between commits in a pull request.