Web based app for health tracking and monitoring. Work in progress.
Just clone the repository.
git clone [email protected]:jonathantorres/health.gitInstall php dependencies with composer and javascript dependencies with npm.
composer install && npm installCopy the included .env.example file to .env.
cp .env.example .envLogin to your local mysql installation and create your local and testing database.
mysql -u root -p ''
create database health;
create database heath_test;Generate your application key
php artisan key:generateAnd run your migrations and seeds, which will create your tables and a test user.
php artisan migrate && php artisan db:seednpm run devOnce everything is installed in order, you can run your server.
php artisan serve
Alternatively, if you have Laravel Valet installed (like I do) and configured you should be able to see your app running locally on http://health.dev.
Unit tests are done with PHPUnit. Run the unit test with the following command.
vendor/bin/phpunitIntegration tests are done with PHPUnit and Laravel Dusk. Run the following command to run the integration tests.
php artisan dusk