Codeblock
Repository for codeblock.se
Installation instructions
- Install composer and run
composer install
in this directory. - Create database and database user with all permissions.
- Create an .env from .env.example and add all your config values in there.
- Run
php artisan Install
. - Run
php artisan websocket
with supervisor.
Config needed for pHpunit tests
If you would like to run the phpunit tests you will need following in your .env file:
FROM_ADRESS, FROM_NAME, GITHUB_TOKEN
Creating documentation
- Run
php artisan make:doc
. - You can now view the documentation on routes
/doc
and/doc/api
.
Coding style
You can check if your contribution passes the styleguide by using phpcs and running following in your project root:
- Run
vendor/bin/phpcs --config-set default_standard PSR2
. - Run
vendor/bin/phpcs path/to/files/to/check
. (This command should you run on all php files you are editing.)