- PHP ^7.3
- Composer
- MySQL
- Npm
1-) Clone the project
$ git clone https://github.com/thiiagoms/larapp
2-) Inside the project, install dependencies
$ composer install
$ npm install && npm run dev
3-) copy .env.example
to .env
$ cp .env.example .env
4-) Generate key
with artisan
$ php artisan key:generate
5-) Configure your database credentials inside .env
6-) Run migrations and seeders
$ php artisan migrate
$ php artisan db:seed
7 -) Link on storage
$ php artisan storage:link
8-) Run the project
$ php artisan serve
$ php artisan queue:listen --tries=3
9-) You have two options to run tests:
- First, with "vanilla" phpunit
$ ./vendor/bin/phpunit
- Secon, with composer command
$ composer test
BONUS: You also can run code styles like phpcs
and phpcbf
with:
$ composer phpcs
$ composer phpcbf