Git Product home page Git Product logo

ethindia-2023's Introduction

Reactify

Reactify: Simplifying dApp Creation with the Strength of React and the Agility of react-router-dom.

Why Use This:

  • React Advantage: Leverage the power of React to build dynamic, responsive, and efficient web applications.

  • Routing with react-router-dom: Seamlessly manage your application's navigation with react-router-dom, making it easy to create single-page applications (SPAs) with client-side routing.

  • Tailwind CSS Integration: Enjoy the benefits of Tailwind CSS, a highly customizable utility-first CSS framework, to streamline your UI development.

  • User-Friendly Wallet Access: RainbowKit offers a fast, user-friendly, and highly customizable solution for integrating wallet functionality into your application, ensuring a great user experience.

  • Effortless Contract Integration: Wagmi simplifies the integration of smart contracts, reducing the complexity of Ethereum interactions and allowing you to focus on building your dApp's core functionality.

  • Ethers.js Compatibility: We harness Ethers.js to handle blockchain-related operations, making it easy to work with blockchain data, like BigInt, and parse inputs.

  • TypeScript Support: Enjoy the benefits of TypeScript for enhanced code quality, better tooling, and an improved developer experience, ensuring a smoother development process.

Setup and use

  1. Clone the Repository:

    git clone https://github.com/SrinivasJoshi/Reactify.git
    
  2. Change Directory:

    cd Reactify
    
  3. Install Dependencies:

    npm install
    
  4. Configure WalletConnect Cloud:

  • Obtain a projectId from WalletConnect Cloud.
  • Open src/main.tsx in your code editor.
  • Add the obtained projectId and the desired appName in the provided space in the code.
  • Optionally also configure the chain as shown in src/main.tsx.
  1. Start dev server :

    npm run dev
    
  2. Format code :

    npm run format
    

Folder structure

๐Ÿ“ root

โ”œโ”€โ”€ ๐Ÿ“ public

โ”œโ”€โ”€ ๐Ÿ“ src

โ”œโ”€โ”€ ๐Ÿ“„ index.html

โ”œโ”€โ”€ ๐Ÿ“„ tailwind.config.js

โ”œโ”€โ”€ ๐Ÿ“„ tsconfig.js

โ”œโ”€โ”€ ๐Ÿ“„ package.json

โ”œโ”€โ”€ ๐Ÿ“„ package-lock.json

โ”œโ”€โ”€ ๐Ÿ“„ .gitignore

โ”œโ”€โ”€ ๐Ÿ“„ README.md

โ””โ”€โ”€ ๐Ÿ“ .husky

src

  • components : Reusable React components for the dApp.

  • contracts : Store for smart contract references.

  • utils : Utilities like contract info.Could be potentially used for state management using recoil

    • contractInfo.ts : smart contract address and ABI

index.html : Main HTML file for the web app, used to add required metadata.

tailwind.config.js : Tailwind CSS customization file for custom themes, fonts, and colors. public : Assest folder

Additional reads

  1. Basic example usage of Wagmi with React - Link.

  2. React-Router(v6) docs - Link

  3. Wagmi docs - Link

ethindia-2023's People

Contributors

srinivasjoshi avatar

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.