@@ -24,12 +24,13 @@ Several human players (at least two) can manage their hockey teams out of a list
...
@@ -24,12 +24,13 @@ Several human players (at least two) can manage their hockey teams out of a list
* project done: Sun 01.06.2021 23:59
* project done: Sun 01.06.2021 23:59
* evaluation submitted: Fri 04.06.2021 23:59 (note the deadline on Friday this time)
* evaluation submitted: Fri 04.06.2021 23:59 (note the deadline on Friday this time)
##Setup
## Setup
1. install npm and Node.js - https://www.npmjs.com/get-npm (check the option to install all required dependencies)
2. go to the web folder and run "npm update" in your shell (this might take a while, it is expected)
3. run "npm install -g @angular/cli" in your shell
##Run
1. Install npm and Node.js - https://www.npmjs.com/get-npm (check the option to install all required dependencies)
2. Go to the web folder and run "npm update" in your shell (this might take a while, it is expected)
3. Run "npm install -g @angular/cli" in your shell
## Run
1. In the root folder run "mvn clean install" in your shell (can be done in intelliJ idea, be sure to run it in the root)
1. In the root folder run "mvn clean install" in your shell (can be done in intelliJ idea, be sure to run it in the root)
2. In directory /rest run "spring-boot:run", this will start REST API web application (can be done in idea by building and running the RestApplication)
2. In directory /rest run "spring-boot:run", this will start REST API web application (can be done in idea by building and running the RestApplication)
...
@@ -37,7 +38,8 @@ Several human players (at least two) can manage their hockey teams out of a list
...
@@ -37,7 +38,8 @@ Several human players (at least two) can manage their hockey teams out of a list
The application is listening on http://localhost:4200/
The application is listening on http://localhost:4200/
##Security
## Security
There are three roles in the application. By default you are the User and can only use/access the public API, such as list all teams or players.
There are three roles in the application. By default you are the User and can only use/access the public API, such as list all teams or players.
The second role is the Team manager. Login using following credentials, that will allow you to manage your hockey team:
The second role is the Team manager. Login using following credentials, that will allow you to manage your hockey team:
...
@@ -48,7 +50,8 @@ The third role is the League manager. Login using following credentials, that wi
...
@@ -48,7 +50,8 @@ The third role is the League manager. Login using following credentials, that wi
* username: league_manager
* username: league_manager
* password: 9876
* password: 9876
##Rest
## Rest
You can use public API after starting REST API application. We recommend to use Postman (https://www.postman.com/),
You can use public API after starting REST API application. We recommend to use Postman (https://www.postman.com/),
or you can enter the links to the browser directly while the Rest API is running (how to run it is explained above).
or you can enter the links to the browser directly while the Rest API is running (how to run it is explained above).
However, everything in the web application was done using only calls to the Rest API, so it is fine if you just test the UI.
However, everything in the web application was done using only calls to the Rest API, so it is fine if you just test the UI.