Skip to content

This is a collaboration app for my girlfriend and me to manage our common expenses (e.g. groceries, vacations, ...).

License

Notifications You must be signed in to change notification settings

cayacdev/cashbox

Repository files navigation

CodeQL PHP Backend Tests Frontend Tests codecov

CashBox Application

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.

Setup local environment

Initial setup

For the lumen backend following steps are necessary:

  • Generate secret key php artisan jwt:secret
  • Copy and adapt environment file cp .env.template .env

Create test data for development

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 servers

  • Start backend server: php -S localhost:8080 -t public
  • Start frontend server: ng serve --open

Run tests

  • Run backend tests:
    • ./vendor/bin/phpunit
    • XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-html coverage
  • Run frontend tests
    • ng test
    • ng test --code-coverage

About

This is a collaboration app for my girlfriend and me to manage our common expenses (e.g. groceries, vacations, ...).

Resources

License

Stars

Watchers

Forks