Git Product home page Git Product logo

erc20-market's Introduction

Project structure

src |---adapters |---contexts |---components |---styles |---pages

  • Components

Components are the life-blood of your application. They will hold the UI for your application, and can sometimes hold the Business Logic and also any State which has to be maintained. components |---page1Components |--Component1 |--Component2 |---page2Component |--Component1 |---index.tsx |---bl.tsx

  • Contexts contexts folder is a bare minimum folder only containing the state which has to be shared across these components. Each page can have several nested contexts, with each context only passing the data forward in a downward direction. But to avoid complexity, it is best to only have a single context file. This structure will look like this:

    contexts |---page1Context |--------index.tsx (Exports consumers, providers, ...) |--------Context1.tsx (Contains part of the state) |--------Context2.tsx (Contains part of the state) |---page2Context |--------index.tsx (Simple enough to also have state)

    In the above case, since page1 may be a bit more complex, we allow some nested context by passing the child context as a child to the parent.

  • Context cung cấp phương pháp truyền data xuyên suốt component tree mà không cần phải truyền props một cách thủ công qua từng level.

  • Context được thiết kế để chia sẽ data khi chúng được xem là “global data” của toàn bộ ứng dụng React, chẳng hạn như thông tin về user hiện tại đang đăng nhập, theme, hoặc ngôn ngữ mà người dùng đã chọn.

  • Context chủ yếu được sử dụng khi một số data cần được truy cập bởi nhiều components ở nhiều tầng khác nhau.

What is netlify

netlify help to deploy your project

  • Every time we re-push our code on github the site will get redeployed and has the latest update

Web3Auth

@Walletconnect

React - moralis

+ easily call functionalities and display database in Moralis
+ just need to provide serverUrl and appId

* hook privided
    👉useMoralis for authentication and user data
    👉useMoralisQuery for easy query
    👉useMoralisCloudFunction for easy cloud functions
    👉useMoralisSubscription for easy subscription
    👉useMoralisFile for easy file uploads

In order to start, we need to wrap our _app.js with MoralisProvider then provide our serverUrl and appId

Magic - SDK

🔴 Magic Connect
    Magic connect is a fully-featured, global Web3 wallet

🔴 Magic Auth

Moment (Moment.js)

Dice bear avatars

DiceBear is an avatar library for designers and developers. You can choose between simple identicons and lovely designed characters.

Ether.js

A Provider in ethers is a read-only abstraction to access the blockchain data.

  • JSON-RPC Provider
  • The JSON-RPC API is a popular method for interacting with Ethereum and is available in all major Ethereum node implementations ethers.providers.JsonRpcProvider( [ urlOrConnectionInfo [ , networkish ] ] )

IPFS

https://github.com/ipfs/js-ipfs/blob/master/packages/ipfs-http-client/README.md

How do we show the recently listed NFTS ?

-- we will index the events off-chain and then read from our database -- Setup a server to listen fo those events to be fired

Moralis - Live query

  • When subscribe to an event happening on a table in backend Ex : We create a object Monster, we want whenever a monster joined, we will create an event for a Monster appear

let query = new Moralis.Query('Game'); let subscription = await query.subscribe();

  • The subscription you get is actually an event emitter

=> So, we have an event emitter, we need to handling some of that event

  • open event subscription.on('open', () => { console.log('subscription opened'); });

    When you call query.subscribe(), we send a subscribe request to the LiveQuery server. When we get the confirmation from the LiveQuery server, this event will be emitted.

  • yêu cầu trang profile của 1 ví bất kì đều có thể xem được từ những địa chỉ ví khác

erc20-market's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.