This project was bootstrapped with Create Eth App.
The default template is a monorepo created with Yarn Workspaces.
Workspaces makes it possible to setup multiple packages in such a way that we only need to run yarn install
once to install all of them in
a single pass. Dependencies are hoisted at the root.
my-eth-app
βββ README.md
βββ node_modules
βββ package.json
βββ .gitignore
βββ packages
βββ contracts
β βββ README.json
β βββ package.json
β βββ src
β βββ abis
β β βββ erc20.json
β β βββ ownable.json
β βββ addresses.js
β βββ index.js
βββ react-app
β βββ README.md
β βββ node_modules
β βββ package.json
β βββ public
β β βββ favicon.ico
β β βββ index.html
β β βββ logo192.png
β β βββ logo512.png
β β βββ manifest.json
β β βββ robots.txt
β βββ src
β βββ App.css
β βββ App.js
β βββ App.test.js
β βββ ethereumLogo.svg
β βββ index.css
β βββ index.js
β βββ serviceWorker.js
β βββ setupTests.js
βββ subgraph
βββ README.md
βββ abis
β βββ erc20.json
βββ package.json
βββ schema.graphql
βββ src
β βββ mappings
β βββ tokens.ts
β βββ transfers.ts
βββ subgraph.yaml
Owing to this dependency on Yarn Workspaces, Create Eth App can't be used with npm.
In the project directory, you can run:
Runs the React app in development mode.
Open http://localhost:3000 to view it in the browser.
The page will automatically reload if you make changes to the code.
You will see the build errors and lint warnings in the console.
Runs the React test watcher in an interactive mode.
By default, runs tests related to files changed since the last commit.
Read more about testing React.
Builds the React app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the React documentation on deployment for more information.
Note: this is a one-way operation. Once you react-app:eject
, you canβt go back!
If you arenβt satisfied with the build tool and configuration choices, you can eject
the React app at any time. This command will
remove the single build dependency from your React package.
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right
into the react-app
package so you have full control over them. All of the commands except react-app:eject
will still work,
but they will point to the copied scripts so you can tweak them. At this point youβre on your own.
You donβt have to ever use react-app:eject
. The curated feature set is suitable for small and middle deployments, and you shouldnβt feel obligated to use this feature. However we understand that this tool wouldnβt be useful if you couldnβt customize it when you are ready for it.
The Graph is a tool for for indexing events emitted on the Ethereum blockchain. It provides you with an easy-to-use GraphQL API.
To learn more, check out the The Graph documentation.
Generates AssemblyScript types for smart contract ABIs and the subgraph schema.
Compiles the subgraph to WebAssembly.
Before deploying your subgraph, you need to sign up on the Graph Explorer. There, you will be given an access token. Drop it in the command below:
GRAPH_ACCESS_TOKEN=your-access-token-here yarn subgraph:auth
Deploys the subgraph to the official Graph Node.
Replace paulrberg/create-eth-app
in the package.json script with your subgraph's name.
You may also want to read more about the hosted service.