Giter Site home page Giter Site logo

tabascoatw / particle-connect-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 189 KB

Boilerplate demo application for facilitating wallet connection with Particle Connect

Home Page: https://particle.network

HTML 3.89% CSS 6.97% TypeScript 86.81% JavaScript 2.33%
boilerplate connect particle-network wallet web3

particle-connect-boilerplate's Introduction

Particle Connect Boilerplate

โšก๏ธ Boilerplate for a Particle Connect implementation with Google, phone, and email Particle Auth integration alongside various EVM and Solana wallet providers.

Built using Particle Connect, TypeScript, and Web3.js

๐Ÿ”Œ Particle Connect

Particle Connect is a simple collection of wallet adapters and components capable of facilitating connection with Particle Auth (Web2 logins), and various third-party wallet providers (Web3 logins).

๐Ÿ”‘ Particle Auth

Particle Auth, a component of Particle Network's Wallet-as-a-Service, enables seamless onboarding to an application-embedded MPC-TSS/AA wallet facilitated by social login, such as Google, GitHub, email, phone number, etc.

๐Ÿ‘‰ Try the demo: https://web-demo.particle.network/connectKit

๐Ÿ‘‰ Learn more about Particle Network: https://particle.network

Particle Auth Example

Deploy with Vercel

๐Ÿ› ๏ธ Quickstart

Clone this repository

git clone https://github.com/TABASCOatw/particle-connect-boilerplate.git

Install dependencies

yarn install

OR

npm install

Set environment variables

This project requires a number of keys from Particle Network and WalletConnect to be defined in .env. The following should be defined:

Start the project

npm run dev

OR

yarn dev

Originally featured in "Supercharging UX in 3, 2, and 6 minutes"

particle-connect-boilerplate's People

Contributors

tabascoatw avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

particle-connect-boilerplate's Issues

Upgrade needed to `@particle-network/connectKit`

Description

particle-connect-boilerplate is a simple example/boilerplate application showcasing the implementation of Particle Connect, Particle Network's in-house connection modal, within an isolated environment.

Particle Connect facilitates both Web2 onboarding through social logins with Particle Auth, and Web3 onboarding through support for various external wallets such as MetaMask, WalletConnect, etc.

Recently, a more modern version of Particle Connect was released which uses the revamped Particle Auth SDK (Particle Auth Core). This demo still uses the old Particle Connect (@particle-network/connect and @particle-network/connect-react-ui) and should be upgraded to use @particle-network/connectKit for a far easier integration experience.

Motivation

@particle-network/connectKit is easier to integrate and has improved overall UX through the usage of Particle Auth Core (more stable, true-embedded interfaces, etc.). Thus it's important that this demo application is upgraded to showcase this rather than @particle-network/connect and @particle-network/connect-react-ui.

Changed Needed

Currently, App.tsx (and if you'd like, App-Solana.tsx) implements the entirety of the logic for Particle Connect, including configuration and whatnot. Thus, with the transition to @particle-network/connectKit, the application will need to be split between index.tsx (for configuration) and App.tsx (for core application logic, such as the balance retrieval and sample signature button).

The existing logic within App.tsx will need to be shifted to instead leverage hooks from @particle-network/connectKit for most functions, although this should be simple given the usage of a custom EIP-1193 provider with Web3.js.

See the following resources for more information on this:

Tasks

  • Remove @particle-network/connect and @particle-network/connect-react-ui
  • Configure Particle Auth Core and Particle Connect within index.tsx (using @particle-network/connectKit)
  • Refactor App.tsx to use hooks derived from @particle-network/connectKit (such as is done within particle-avalanche-connect-demo)

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.