From 9f1c97d17197bf158b4d8c19ab22f8134842b4f3 Mon Sep 17 00:00:00 2001 From: Shreyaschorge Date: Fri, 17 Nov 2023 09:44:41 +0530 Subject: [PATCH 1/2] Remove start script --- docs/getting-started.md | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index 4ae6706a..50958f86 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -37,6 +37,8 @@ tsc --init ### Let's use sdk to look up a user by their FID +Create index.ts file at root level + ```bash touch index.ts ``` @@ -68,20 +70,10 @@ const client = new NeynarAPIClient(""); // Replace with your })(); ``` -#### Update script section in package.json - -```json -{ - "scripts": { - "start": "npx ts-node index.ts" - } -} -``` - -Run the script +Run the project ```bash -yarn start +npx ts-node index.ts ``` You should see a response like this. (You might not get beautified/ formated response since we `JSON.stringify` the response in order to log everything) @@ -116,4 +108,4 @@ You should see a response like this. (You might not get beautified/ formated res } ``` -### Congratulation..!! 🎉 You successfully setup @neynar/nodejs-sdk and used it to look up a user by their FID. \ No newline at end of file +### Congratulation..!! 🎉 You successfully setup @neynar/nodejs-sdk and used it to look up a user by their FID. From 0abdaad84f53e2242ea969600bee4c985ea8c965 Mon Sep 17 00:00:00 2001 From: Shreyaschorge Date: Fri, 17 Nov 2023 10:04:34 +0530 Subject: [PATCH 2/2] Edit sdk to docs --- docs/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index 50958f86..203112b7 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -35,7 +35,7 @@ tsc --init      -### Let's use sdk to look up a user by their FID +### Example: Let's use sdk to look up a user by their FID Create index.ts file at root level