You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-14Lines changed: 22 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -19,18 +19,18 @@ tsc
19
19
20
20
### Folders of example
21
21
22
-
|**Folder**|**What it does**|**Wiki page**|
23
-
|:--|:--|:--|
24
-
|exampleCreateAlastriaID| Contains an example of how to create an Alastria ID|[Wiki](https://github.com/alastria/alastria-identity-example/wiki/Create-Alastria-ID-examples)|
25
-
|exampleTokens| Contains an example of how to interact with [tokenFactory.ts](https://github.com/alastria/alastria-identity-lib/blob/develop/src/tokenFactory/tokensFactory.ts) functions |[Wiki](https://github.com/alastria/alastria-identity-example/wiki/Tokens-example)|
26
-
|exampleCredentials| Contains examples of how to add and get Credentials in AlastriaID | [Wiki](https://github.com/alastria/alastria-identity-example/wiki/Credentials-examples)
27
-
|examplePresentations| Contains examples of how to create, add and get Presentations in AlastriaID |[Wiki](https://github.com/alastria/alastria-identity-example/wiki/Presentations-examples)
28
-
|exampleIdentityServiceProvider| Contains an example of how to add and remove a Identity Service Provider|[Wiki](https://github.com/alastria/alastria-identity-example/wiki/Service-Provider-examples)
29
-
|exampleIdentityIssuer| Contains an example of how to add and remove a Identity Issuer|[Wiki](https://github.com/alastria/alastria-identity-example/wiki/Issuer-examples)
30
-
|exampleFirstEntity| Contains an example of how to create the first entity with the firstIdentity account|[Wiki](https://github.com/alastria/alastria-identity-example/wiki/First-Entity-examples)
31
-
|exampleEntities| Contains an example of get list of entities and get entity information |[Wiki](https://github.com/alastria/alastria-identity-example/wiki/Entities-examples)
32
-
|exampleAuthentication| It contains an example of how authentication is done |[Wiki](https://github.com/alastria/alastria-identity-example/wiki/Authentication-example)
33
-
|keystores| Contains the mocked keystores that we used to create the identities with different roles. These roles are explained [here](/keystores/README.md)|
|exampleCreateAlastriaID| Contains an example of how to create an Alastria ID|[Wiki](https://github.com/alastria/alastria-identity-example/wiki/Create-Alastria-ID-examples)|
25
+
|exampleTokens| Contains an example of how to interact with [tokenFactory.ts](https://github.com/alastria/alastria-identity-lib/blob/develop/src/tokenFactory/tokensFactory.ts) functions |[Wiki](https://github.com/alastria/alastria-identity-example/wiki/Tokens-example)|
26
+
|exampleCredentials| Contains examples of how to add and get Credentials in AlastriaID |[Wiki](https://github.com/alastria/alastria-identity-example/wiki/Credentials-examples)|
27
+
|examplePresentations| Contains examples of how to create, add and get Presentations in AlastriaID |[Wiki](https://github.com/alastria/alastria-identity-example/wiki/Presentations-examples)|
28
+
|exampleIdentityServiceProvider| Contains an example of how to add and remove a Identity Service Provider|[Wiki](https://github.com/alastria/alastria-identity-example/wiki/Service-Provider-examples)|
29
+
|exampleIdentityIssuer| Contains an example of how to add and remove a Identity Issuer|[Wiki](https://github.com/alastria/alastria-identity-example/wiki/Issuer-examples)|
30
+
|exampleFirstEntity| Contains an example of how to create the first entity with the firstIdentity account|[Wiki](https://github.com/alastria/alastria-identity-example/wiki/First-Entity-examples)|
31
+
|exampleEntities| Contains an example of get list of entities and get entity information |[Wiki](https://github.com/alastria/alastria-identity-example/wiki/Entities-examples)|
32
+
|exampleAuthentication| It contains an example of how authentication is done |[Wiki](https://github.com/alastria/alastria-identity-example/wiki/Authentication-example)|
33
+
|keystores| Contains the mocked keystores that we used to create the identities with different roles. These roles are explained [here](/keystores/README.md)|
34
34
35
35
## Environment requirements
36
36
@@ -39,11 +39,13 @@ tsc
39
39
First of all, to avoid possible errors with node and npm, it is recommended that the installation is done through **Nvm**.
40
40
41
41
Once you have **Nvm installed**, all you need to do is install the required version of node with .
42
+
42
43
```sh
43
44
nvm install <version>
44
45
```
45
46
46
-
On the other hand, if any problem persists, it is recommended to **clean the npm cache** with the following command
47
+
On the other hand, if any problem persists, it is recommended to **clean the npm cache** with the following command
48
+
47
49
```sh
48
50
npm cache clean -f
49
51
```
@@ -60,14 +62,16 @@ The list of Npm and Node versions that have worked for the different members of
60
62
|Node 18.19.0 && Npm 10.2.3|**OK**|
61
63
62
64
### Problems with the version of the library and the json-objects installed when running npm install
65
+
63
66
If you encounter problems with the version of the library and the json-objects that are installed after npm install, you need to perform the following steps to solve these problems:
- Delete the package-lock.json -> `rm package-lock.json`
66
70
- Clean the cache -> `npm cache clean -f`
67
71
- Install all dependencies -> `npm install` (from the root directory)
68
72
69
73
Following these steps then check that the version of the library and the json objects that have been installed are correct. To do this go to the `node_modules -> alastria-identity-lib` folder and look at the code inside, to check if it is the one you want.
70
-
Perform the same checking operation for the json-object code `node_modules -> alastria-identity-json-objects`
74
+
Perform the same checking operation for the json-object code `node_modules -> alastria-identity-json-objects`
71
75
72
76
## How to use it
73
77
@@ -131,3 +135,7 @@ The repository already has configuration files for both, so you won't have to co
131
135
To automatically format Javascript and Typescript code
132
136
133
137
If you have installed some plugin that add keyboard shortcuts, like IntelliJ IDEA Keybindings (https://marketplace.visualstudio.com/items?itemName=k--kato.intellij-idea-keybindings) you will be able to format documents with Prettier with shortcuts like `cmd+alt+l`
138
+
139
+
### Contribution
140
+
141
+
**Contribution made by Inetum during 2024 in this document has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreement No. 101084071. (Dome project https://dome-marketplace.eu/)**
0 commit comments