Skip to content

Commit

Permalink
deps: update frontend dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cayacdev committed Jul 7, 2024
1 parent 1cb7b56 commit 8c34844
Showing 1 changed file with 19 additions and 16 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`

0 comments on commit 8c34844

Please sign in to comment.