Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinscholten committed Mar 22, 2022
2 parents 19969bf + d7bb865 commit 1cc6873
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Kotlin JS/JVM Code sharing Gradle multiplatform

## This application contains:
* React Kotlin/JS Front-end module
* React Kotlin/JS Front-end module (uses IR compiler)
* SpringBoot Kotlin/JVM Back-end module
* Shared Kotlin common source module<br />
* `Werknemer` (employee)<br />
* `TlefoonnummerValidator` Phone number validation logic.
* `TelefoonnummerValidator` Phone number validation logic.

The template already present shows Werknemer (Employee) information at the front-end. This info is received from the back-end by an API call. The `Werknemer` data class is shared between front-end and back-end modules. This can be found in the `commonMain` module. The user can set the phone number of the employee only in the correct dutch phone number format. Phone number validation logic is also shared between back-end and front-end and checked on both modules.
The template already present shows Werknemer (Employee) information at the front-end. This info is received from the back-end by an API call. The `Werknemer` data class is shared between front-end and back-end modules. This can be found in the `commonMain` module. The user can set the phone number of the employee only in the correct dutch/international phone number format. Phone number validation logic is also shared between back-end and front-end and checked on both modules.

## Starting the applications
1. Start SpringBoot via the main function.
2. Run 'gradle frontendBrowserDevelopmentRun' to start the front-end.
3. go to `localhost:8080` for front-end, `localhost:3000/api/werknemer` for back-end calls.

**_NOTE:_** The back-end call is proxied from port 3000.
**_NOTE:_** The back-end call is proxied from port 3000 to avoid CORS policy errors.



Expand Down

0 comments on commit 1cc6873

Please sign in to comment.