-
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.
fe and be changes. Change application. (#32)
* changed fe test from karma to jest, because of headless chrome and speed, also faster and better coverage. And added httpService with httpClient for be calls
- Loading branch information
Showing
32 changed files
with
7,527 additions
and
3,780 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 |
---|---|---|
|
@@ -31,11 +31,11 @@ jobs: | |
run: npm run build | ||
|
||
- name: Run tests | ||
run: npm run test:ci | ||
run: npm run test | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
flags: frontend | ||
file: frontend/coverage/lcov-report/lcov.info | ||
file: frontend/coverage/cobertura-coverage.xml |
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 |
---|---|---|
|
@@ -38,3 +38,6 @@ out/ | |
|
||
### Kotlin ### | ||
.kotlin | ||
|
||
### custom ### | ||
config/application.yml |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
spring: | ||
profiles: | ||
active: [ localDev ] | ||
|
||
--- | ||
spring: | ||
config: | ||
activate: | ||
on-profile: localDev | ||
datasource: | ||
url: jdbc:postgresql://localhost:5432/stin | ||
username: postgres | ||
password: postgres | ||
security: | ||
basic: | ||
enabled: false | ||
user: | ||
name: admin | ||
password: admin |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
spring: | ||
profiles: | ||
active: [ localDev ] | ||
|
||
--- | ||
spring: | ||
config: | ||
activate: | ||
on-profile: localDev | ||
datasource: | ||
url: jdbc:postgresql://localhost:5432/stin | ||
username: postgres | ||
password: Mozart987321x | ||
security: | ||
user: | ||
name: admin | ||
password: admin |
17 changes: 17 additions & 0 deletions
17
backend/src/main/kotlin/com/tul/backend/auth/base/SecurityConfig.kt
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.tul.backend.auth.base | ||
|
||
|
||
import org.springframework.context.annotation.Bean | ||
import org.springframework.context.annotation.Configuration | ||
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity | ||
import org.springframework.security.config.web.server.ServerHttpSecurity | ||
import org.springframework.security.web.server.SecurityWebFilterChain | ||
import org.springframework.security.core.userdetails.MapReactiveUserDetailsService | ||
import org.springframework.security.core.userdetails.User | ||
|
||
|
||
@Configuration | ||
@EnableWebFluxSecurity | ||
class SecurityConfig { | ||
|
||
} |
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
server: | ||
port: 8080 | ||
|
||
spring: | ||
application: | ||
name: backend | ||
datasource: | ||
driverClassName: org.postgresql.Driver | ||
jpa: | ||
open-in-view: false | ||
properties: | ||
hibernate: | ||
jdbc.lob.non_contextual_creation: true # for postgresql | ||
dialect: org.hibernate.dialect.PostgreSQLDialect | ||
use_nationalized_character_data: true | ||
temp: | ||
use_jdbc_metadata_defaults: false | ||
show_sql: false | ||
default_schema: public |
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
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import {Config} from 'jest'; | ||
|
||
const jestConfig: Config = { | ||
|
||
preset: 'jest-preset-angular', | ||
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'], | ||
globalSetup: 'jest-preset-angular/global-setup', | ||
reporters: [ | ||
'default', | ||
], | ||
collectCoverageFrom: ['src/**/*.ts', '!**/node_modules/**'], | ||
coverageDirectory: 'coverage', | ||
coverageReporters: ['cobertura', 'text', 'text-summary', 'html'], | ||
cacheDirectory: '.jestcache' | ||
}; | ||
|
||
export default jestConfig; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.