https://github.com/jy8752/the-graph-web
The graphで作成したサブグラフの表示
https://github.com/jy8752/the-graph-web
nextjs the-graph typescript
Last synced: 3 months ago
JSON representation
The graphで作成したサブグラフの表示
- Host: GitHub
- URL: https://github.com/jy8752/the-graph-web
- Owner: JY8752
- Created: 2022-09-24T07:38:12.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-24T15:08:23.000Z (almost 4 years ago)
- Last Synced: 2025-02-28T23:39:20.048Z (over 1 year ago)
- Topics: nextjs, the-graph, typescript
- Language: TypeScript
- Homepage:
- Size: 149 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shimahi subgraph web
The graphで作成した[shimashiサブグラフ](https://github.com/JY8752/The-graph-demo3)のweb.

## init
```
npx create-next-app --ts .
```
## setup
### graphql
```
yarn add @apollo/client graphql
```
### graphql codegen
```
yarn add -D @graphql-codegen/cli
yarn add -D @graphql-codegen/typescript
yarn graphql-codegen init
? What type of application are you building? Application built with React
? Where is your schema?: (path or url) https://api.thegraph.com/subgraphs/name/jy8752/doodle
? Where are your operations and fragments?: queries/**/*.ts
? Pick plugins: TypeScript (required by other typescript plugins), TypeScript Operations (operations and fragments), TypeScript React Apollo (typed components and HOCs)
? Where to write the output: types/generated/graphql.tsx
? Do you want to generate an introspection file? No
? How to name the config file? codegen.yml
? What script in package.json should run the codegen? gen-types
yarn gen-types
```
## css
```
yarn add clsx
```
### ipfs
```
yarn add ipfs-core
```