-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
md file #179
base: tutorials
Are you sure you want to change the base?
md file #179
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
fabriziogianni7 marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,14 +9,14 @@ This tutorial demonstrates a basic example of using the Nevermined SDK to intera | |
Ensure you have the following installed: | ||
|
||
- Node.js | ||
- npm (Node Package Manager) | ||
- yarn (Node Package Manager) | ||
|
||
## Setup | ||
|
||
1. Install the Nevermined SDK package: | ||
|
||
```bash | ||
npm install @nevermined-io/sdk | ||
``` | ||
yarn && yarn add @nevermined-io/sdk | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
2. Create a TypeScript file (e.g., main.ts) and paste the following code: | ||
```ts | ||
|
@@ -45,15 +45,16 @@ Ensure you have the following installed: | |
main().then(() => process.exit(0)) | ||
``` | ||
|
||
3. Download the artifacts in the same folder: | ||
3. From the root folder run: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe some explanation of what artifacts are and why they are needed would be nice There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I put " This will create an "artifacts" folder and download in it the Nevermined smart contract artifacts." |
||
``` | ||
wget -c https://artifacts.nevermined.network/421613/public/contracts_v3.5.2.tar.gz -O -| tar -xz --one-top-level=./artifacts | ||
mkdir artifacts && cd artifacts && wget -c https://artifacts.nevermined.network/421613/public/contracts_v3.5.2.tar.gz && tar -xzvf contracts_v3.5.2.tar.gz | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this for the sake of simplicity? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it did not work in the other way |
||
``` | ||
This will create an "artifacts" folder and download in it the Nevermined smart contract artifacts. | ||
|
||
## Running the Code | ||
Execute the following command to run the TypeScript file: | ||
|
||
npm install @nevermined-io/sdk | ||
yarn start | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this makes sense because we don't know how the user is using the code. This would only work on the |
||
|
||
|
||
This will initialize the Nevermined SDK, configure it with the specified options, and output information about SDK versions. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the root package.json for the entire documentation. any reason why we are doing this?