I created this application because my girlfriend and me needed a digital cash box. Before COVID-19, we had an analog box to store cash every month. With this money we bought groceries or went out to eat. Since everybody now uses contactless payment the old approach is useless.
For the lumen backend following steps are necessary:
- Generate secret key
php artisan jwt:secret
- Copy and adapt environment file
cp .env.template .env
This command creates test data with four users
cd backend; php artisan migrate:fresh --seed
User | Password |
---|---|
[email protected] | 12345678 |
[email protected] | 12345678 |
[email protected] | 12345678 |
[email protected] | 12345678 |
- Start backend server:
php -S localhost:8080 -t public
- Start frontend server:
ng serve --open
- Run backend tests:
./vendor/bin/phpunit
XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-html coverage
- Run frontend tests
ng test
ng test --code-coverage