npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

create-kiboko-dapp

v1.0.0

Published

Welcome to Kiboko dapp starter kit!

Downloads

30

Readme

dApp Starter Kit

Welcome!

This is a starter kit for building decentralized applications (dApps) using Solidity smart contracts and React.js frontend.

It provides a basic setup for building, testing, and deploying your dApp.

The starter kit includes a sample smart contract written in Solidity, a React.js frontend, and a Hardhat configuration for deploying to the Ethereum test networks (The sample contract is deployed in mumbai testnet).

It also includes scripts for compiling, deploying, and testing your dApp.

Whether you're a beginner or an experienced developer, this starter kit provides a solid foundation for building your next dApp. Get started quickly with our easy-to-use setup, or customize it to fit your specific needs.

Happy coding!

Getting started:

There are 2 branches:

  1. multi-wallet-support
  2. metamask-only

multi-wallet-support : recommended when building large scalable dApps. Supports a number of wallets from coinbase, trust wallet, walletconnect, metamask e.t.c

metamask-only: recommended when doing smaller projects, only supports Metamask wallet

Installation:

Clone the repository:

git clone https://github.com/Stephen-Kimoi/dApp-starter-kit.git

Depending on the type of project you are doing, checkout to the branch you'll be using

git checkout metamask-only - for smaller projects

git checkout multi-wallet-support - for large scalable dApps

npm install

cd frontend & npm install

Once dependencies are installed run the following command:

cp .env.example .env;

Now add your alchemy api key i.e ALCHEMY_API_KEY and private key i.e PRIVATE_KEY

You can get your alchemy api key over here You can see how to get your private key over here

Finally run:

npm run dev

This is the UI you'l see: UI

Sample contract is found in contracts/Counter.sol

The deploy script is found in scripts/deploy.js

NB: You do not need to manualy copy paste the contract ABI and address when you run the deploy script, the saveFrontendFiles function inside the deploy.js script automatically creates a folder named contracts inside the frontend/src directory which contains:

├── contracts/ 
    ├── contract-address.json - contains contract address 
    ├── Contract.json - contains contract ABI

The command for running the deploy script is: npm run deployTestnet (check out package.json in the main directory)

This command deploys the contract to mumbai testnet

If you want to test the smart contract locally without having to deploy it:

  1. Run npx hardhat node for starting the hardhat node network.
  2. Run npm run deployLocal deploys contract to local hardhat network that you've just started.

Site description

When you run npm run dev this is the site that you'll see: UI

Click on the connect wallet button and this pop-up will appear:

For metamask-only branch: Pop Up UI

For mutli wallet branch: Pop Up UI

Once you connet your wallet succesfully this is what you'll see (For both branches): Landing site

You can now start editing it to suit the project you're doing

NB: The contract is deployed in mumbai testnet, therefore ensure you've switched to mumbai testnet and have some mumbai matic to prevent any errors.