alexloveblockchain / treasure-marketplace

Home Page:https://marketplace.treasure.lol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Treasure Marketplace

All Contributors

This is the source code for Treasure Marketplace frontend. Check out the subgraph repo for the API integration part.

Tech stack:

  • Next.js
  • tailwindcss
  • react-query
  • TypeScript

Development

This repo uses yarn to manage dependencies.

To get the dev environment running on localhost:3000, run the following commands:

  1. yarn install
  2. yarn dev

We also use graphql-codegen to read the graphql endpoint defined in codegen.yml to generate type-safe graphql queries to be consumed by react-query.

Important: Before you attempt to run the dev environment for the first time, please run:

yarn generate

to generate type-safe graphql queries.

After that, in order to automatically generate type-safe graphql queries, run this command in a separate window:

yarn watch:codegen

Every time you make changes to queries.graphql.ts, the watcher will check if that query exists in the endpoint, and if it does, spits out appropriate typesafe query for you.

Contributing

Feature Request:

  • Please make an discussion under Discussions, and we will move it to issues if we think its necessary.

PR/Issues (Bug):

  • Make an issue first, then fork the repo, create a PR and tag wyze or jcheese1 and we will review!

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Neil Kistner

πŸ’» πŸ€”

jc

πŸ€” πŸ’» 🎨

0xkarel

πŸ“–

Peita Lin

πŸ’»

This project follows the all-contributors specification. Contributions of any kind welcome!

About

https://marketplace.treasure.lol


Languages

Language:TypeScript 98.9%Language:CSS 0.6%Language:JavaScript 0.5%Language:Shell 0.0%