Skip to content

The new digital land-rush is upon us! Will you become the next land-baron?

Notifications You must be signed in to change notification settings

Metestates/metestates

Repository files navigation

Metestates

pages-build-deployment

The new digital land-rush is upon us! Will you become the next land-baron?

WIP

Dependencies

$ npm i -g graphql apollo craco gh-pages

$ nvm use 16
Now using node v16.13.1 (npm v8.1.2)

$ node --version
v16.13.1

$ npm --version
8.1.2

$ npm list -g
/Users/michaelzalla/.nvm/versions/node/v16.13.1/lib
├── apollo@2.34.0
├── craco@0.0.3
├── gh-pages@4.0.0
├── graphql@16.5.0
├── npm@7.7.6
└── npmrc@1.1.1

Codegen

Generate GraphQL JSON Schema

apollo client:download-schema ./marketplace.schema.json

Generate GraphQL TypeScript interfaces

apollo codegen:generate \
    --localSchemaFile=./marketplace.schema.json \
	--target=typescript \
	--tagName=gql

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the 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 section about deployment for more information.