added instructions in README.md, config for debug in VSCODE

This commit is contained in:
Alfredo Oliviero 2024-02-23 12:15:32 +01:00
parent 1cef40fbbd
commit 535df5b3a9
3 changed files with 51 additions and 0 deletions

View File

@ -34,4 +34,15 @@
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
<filteredResources>
<filter>
<id>1708682957073</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

16
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,16 @@
{
// Usare IntelliSense per informazioni sui possibili attributi.
// Al passaggio del mouse vengono visualizzate le descrizioni degli attributi esistenti.
// Per altre informazioni, visitare: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug (Attach)",
"projectName": "identity-manager",
"request": "attach",
"hostName": "localhost",
"port": 5005
}
]
}

View File

@ -13,6 +13,30 @@ HelloWorld service for smartgears4
## Documentation
obtain {{TOKEN}} at https://next.dev.d4science.org/group/gcube/home
start the docker container
```./buildImageAndStart.sh```
test urls (replace {{TOKEN}} with your token):
http://localhost:8080/helloworld/details?gcube-token={{TOKEN}}
http://localhost:8080/helloworld/hello/details?gcube-token={{TOKEN}}
http://localhost:8080/helloworld/auth?gcube-token={{TOKEN}} (checks for myRole role)
http://localhost:8080/helloworld/auth/orm_member?gcube-token={{TOKEN}} (checks for OrganizationMember role)
### DEBUG
start the docker container in debug Mode
```./buildImageAndStartWithDebug.sh```
connect the JAVA debugger to port 5005
* VSCODE: press the green play button and start "Debug (Attach)
## Change log
See [Releases](https://code-repo.d4science.org/gCubeSystem/helloworld/releases).