Enhance the "getting started" docs a little more
@RettBehrens 已经在做这个了。
开始于 2021年4月15日。
评估
这个 Issue 还没有评估数据。
描述
Describe the bug
Seems the readme is missing some of the usual simple things I would expect for getting started, they can but found but it makes you have to go look for them.
How to install
I think these are both right but feel free to check/change:
`
npm install xero-node -D
yarn add xero-node
`
Include require statements in all demo code
Can we include the right import/require statements somewhere, had to do some guess work to find it:
const { XeroClient } = require("xero-node");
This won't work with SPA as we don't support it
I tried to use this in my SPA but its using loads of node only goodies so it failed. I then used it to as a crib sheet to try to make my own thin client to get it working (I only needed two API endpoints). But this fell down due to CORS errors/restrictions when got to actually trying to do the API calls (the OAuth stuff doesn't have this problem so lead me on a bit of a false start). Would really be worth a bit about the lack of CORS support and how a proxy or Lambda would be needed to do the heavy lifting instead. Would have saved me a day of swearing to know that up front.
All the above small bits of info would have saved me some time and head scratching, less friction so I can get to the good stuff quicker.
Cheers
Pete
- 主要语言
- TypeScript
- 星标
- 264
- 派生
- 177
- 平均合并
- 10 小时 5 分钟
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
XeroAPI/xero-node 的其他 Issue
-
`getClientCredentialsToken()` sends `scopes` (comma-joined) instead of the OAuth `scope` parameter未关闭
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 3/5 半天 新手友好度 55/100
-
TrackingOptionId value missing from accountingApi.getInvoices()可能已有人在做 @miachillgood 于 152 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 18/100
-
BankTransaction type is missing the batchPayment object.可能已有人在做 @miachillgood 于 171 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 22/100
-
难度 3/5 1-2 天 新手友好度 25/100
查看 XeroAPI/xero-node 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
super-productivity/super-productivity#12128 · 2 条评论 ·
维护者通常 1 天内回复
-
A docs change can fail pnpm check, because outreach lint and gen:types both write .astro/ at once可能已有人在做 @2389400626lh-ops 今天认领。 未关闭Area: Infrastructure Area: Outreach Bug Difficulty: Low Good First Issue Priority: Low
难度 2/5 1-3 小时 新手友好度 78/100
DouglasNeuroInformatics/OpenDataCapture#1956 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 72/100
justyns/silverbullet-ai#199 ·
-
bug
难度 2/5 1-3 小时 新手友好度 83/100
spartan-ng/spartan#1931 ·
维护者通常 2 天内回复