-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
10,800 additions
and
8,516 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` | ||
|
||
|
@@ -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 | ||
|
||
|
@@ -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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.