Skip to content

Commit

Permalink
deps: upgrade dependencies (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
cayacdev authored Jul 7, 2024
1 parent 3bebf50 commit f932b0a
Show file tree
Hide file tree
Showing 48 changed files with 10,800 additions and 8,516 deletions.
35 changes: 19 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
[![CodeQL PHP](https://github.com/cayacdev/cashbox/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/cayacdev/cashbox/actions/workflows/codeql-analysis.yml)
[![Backend Tests](https://github.com/cayacdev/cashbox/actions/workflows/backend_tests.yml/badge.svg)](https://github.com/cayacdev/cashbox/actions/workflows/backend_tests.yml)
[![Frontend Tests](https://github.com/cayacdev/cashbox/actions/workflows/frontend_tests.yml/badge.svg)](https://github.com/cayacdev/cashbox/actions/workflows/frontend_tests.yml)
[![codecov](https://codecov.io/gh/cayacdev/cashbox/branch/main/graph/badge.svg?token=SWJO8H1U9H)](https://codecov.io/gh/cayacdev/cashbox)
[![CodeQL PHP](https://github.com/cayacdev/cashbox/actions/workflows/codeql-analysis.yml/badge.svg?branch=main)](https://github.com/cayacdev/cashbox/actions/workflows/codeql-analysis.yml)
[![Backend Tests](https://github.com/cayacdev/cashbox/actions/workflows/backend_tests.yml/badge.svg?branch=main)](https://github.com/cayacdev/cashbox/actions/workflows/backend_tests.yml)
[![Frontend Tests](https://github.com/cayacdev/cashbox/actions/workflows/frontend_tests.yml/badge.svg?branch=main)](https://github.com/cayacdev/cashbox/actions/workflows/frontend_tests.yml)
[![codecov](https://codecov.io/gh/cayacdev/cashbox/branch/main/graph/badge.svg?token=SWJO8H1U9H&branch=main)](https://codecov.io/gh/cayacdev/cashbox)

# CashBox Application
# 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.
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`

Expand All @@ -20,12 +23,12 @@ For the lumen backend following steps are necessary:
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 |
| User | Password |
|----------------|----------|
| [email protected] | 12345678 |
| [email protected] | 12345678 |
| [email protected] | 12345678 |
| [email protected] | 12345678 |

### Start servers

Expand All @@ -35,8 +38,8 @@ This command creates test data with four users
### Run tests

* Run backend tests:
* `./vendor/bin/phpunit`
* `XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-html coverage`
* `./vendor/bin/phpunit`
* `XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-html coverage`
* Run frontend tests
* `ng test`
* `ng test --code-coverage`
* `ng test`
* `ng test --code-coverage`
12 changes: 6 additions & 6 deletions backend/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"type": "project",
"require": {
"php": "^8.0",
"laravel/lumen-framework": "^v10.0.1",
"tymon/jwt-auth": "2.0.0"
"laravel/lumen-framework": "^v11.0.0",
"tymon/jwt-auth": "2.1.1"
},
"require-dev": {
"barryvdh/laravel-ide-helper": "^v2.13.0",
"fakerphp/faker": "^v1.23.0",
"mockery/mockery": "^1.6.6",
"phpunit/phpunit": "^10.3.2"
"barryvdh/laravel-ide-helper": "v3.0.0",
"fakerphp/faker": "^v1.23.1",
"mockery/mockery": "^1.6.12",
"phpunit/phpunit": "^11.2.6"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit f932b0a

Please sign in to comment.