Clone this repository and setup your development environment configuration:
- Duplicate the file
.env.example.phpand name it.env.local.php - Apply your configuration
- Make sure you never commit this file. (It should be git ignored per default)
Important: Have a look at the docs directory. Else you'll be missing some important instructions.
Currently the app is configured to use either the variable $_ENV['APP_ENV'] to set the environment or fall back to production. To make it short: The whole Application runs in the production environment if you don't apply the following changes.
- For Apache: Use
SetEnv APP_ENV localin your vhost configuration or.htaccessfile. - For nginx with php-fpm: Use
env[APP_ENV] = localin thephp-fpm.conffile. (Usually located at/etc/php5/fpm/php-fpm.conf) - For nginx with php-cgi: Use
fastcgi_param APP_ENV local;in your site configuration. (Context: location) - Run
export APP_ENV="local"in the command line to temporarily set the environment or add it to your~/.bash_profilefor a permanent setup.
If you set the environment in the command line you could run into trouble trying to install the production version on your system. You can always check the currently set environment using echo $APP_ENV in the command line. Even if you've set a permanent environment in your ~/.bash_profile you could just temporarily change it running export APP_ENV="production" for example.
composer install --dev -o
php artisan ide-helper:generate
chmod -R 777 app/storage
php artisan larapress:installWhenever you add a ServiceProvider that is only needed for development tasks make sure you don't add it in the app/config/app.php configuration file. Instead add it in the app/config/local/app.php file.
We're utilizing the Git Flow with following prefixes:
- feature/*
- release/*
- hotfix/*
We're prefixing version numbers with the letter "v" like v1.0.1 and follow the Semantic Versioning Principles.
We're following the PSR-2 Coding Style Guide.
Don't apply changes that affect these instructions without updating them!
The complete codebase including docs must be written in english. This allows us hiring experts from all over the world when needed.
Pull Requests missing documentation won't be accepted.
Pull Requests missing tests won't be accepted.