- download
git clone https://github.com/cmsrs/tasks.git && cd tasks
- run script
./go_install.sh
- download
git clone https://github.com/cmsrs/tasks.git && cd tasks
- create user and database
./go_create_user_and_db.sh
- change file .env:
cp .env.tasks .env
- install dependency
composer install
- laravel and jwt config (create tokens):
php artisan key:generate && php artisan jwt:secret
- create database tables and create admin users:
admin - (email: admin@tasks.pl, pass: tasks123)
client - (email: client@tasks.pl, pass: tasks456)
php artisan migrate && php artisan db:seed --class=UserSeeder
- set permission
./go_privilege.sh
- start server
php artisan serve
- prepare testing:
./go_create_test_db.sh
cp .env .env.testing
change in file .env.testing:
DB_DATABASE=tasks_testing
- run tests:
./go_privilege.sh
./vendor/bin/phpunit