Skip to content

Commit

Permalink
create env.yaml with composer
Browse files Browse the repository at this point in the history
  • Loading branch information
SadeghPM committed Aug 11, 2018
1 parent de77f0f commit 28fdfef
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
if you worked in laravel then the skeleton structure is familiar to you.skeleton using slimframework and twig for template engine, monolog for logger, Laravel Eloquent for database interactions and laravel mix for js/css operations.

### Quick start
+ installation : `composer create-project sadegh-pm/slim-skeleton --prefer-dist [my-app-name]`
+ copy `env.example.yaml` to `env.yaml` and fill detail
+ installation : `composer create-project sadegh-pm/slim-skeleton [my-app-name]`
+ set database and other configuration at `env.yaml`
+ start server: `composer start`
+ test: `composer test`
+ asset(js/sass) compilation: `npm dev` or `npm prod` for production build. see package.json for more options.
Expand Down
18 changes: 13 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,19 @@
"Tests\\": "tests/"
}
},
"config": {
"process-timeout": 0
},
"scripts": {
"start": "php -S localhost:8000 -t public",
"test": "phpunit"
}
"test": "phpunit",
"post-root-package-install": [
"@php -r \"file_exists('env.yaml') || copy('env.example.yaml', 'env.yaml');\""
]
},
"config": {
"process-timeout": 0,
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"minimum-stability": "dev",
"prefer-stable": true
}

0 comments on commit 28fdfef

Please sign in to comment.