Enhance the "getting started" docs a little more

オープン
#521 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

@RettBehrens がすでに取り組んでいます。

2021年4月15日 から。

評価

この issue はまだ評価されていません。

説明

Priority: Low Status: Accepted Type: Documentation

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分
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

XeroAPI/xero-node のほかの issue

XeroAPI/xero-node の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。