https://github.com/ryohey/graphql-react-example
https://github.com/ryohey/graphql-react-example
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ryohey/graphql-react-example
- Owner: ryohey
- Created: 2023-08-03T02:56:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-04T07:26:05.000Z (almost 2 years ago)
- Last Synced: 2025-03-15T22:13:01.725Z (4 months ago)
- Language: JavaScript
- Size: 40 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL React Example
## 環境構築
ターミナルでリポジトリをクローンし、ディレクトリに移動します。npm install を実行します。
```bash
git clone https://github.com/ryohey/graphql-react-example.git
cd graphql-react-example
npm install
```https://github.com/settings/tokens?type=beta より Fine-grained personal access tokens を作成します。
`.env.local.example` ファイルをコピーして `.env.local` と名前をつけます。
`.env.local` を編集し、`VITE_GITHUB_TOKEN` のコメントを解除し、xxx の部分を先程作成した Personal Access Token に置き換えます。
下記のようになります。
```
VITE_GITHUB_TOKEN=github_pat_...
```## 開発
```bash
npm run dev
```ターミナルに表示された URL をブラウザで開きます。