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

predictorsdapp

v1.0.1

Published

Predictors Platform that I developed on the Binance Smart Chain . Users can publish their future predictions on this platform and place bets on these predictions.

Downloads

52

Readme

Predictors dAPP Platform on Binance Smart Chain Testnet!

Overview

PredictorsApp app is a distributed entertainment platform on Binance Smart Chain. This dApp is deployed on the BSC network in the web3 ecosystem and targets web3 users. Users can share their predictions for the future on this platform and place bets on their predictors based on these predictors. To immortalize their successful predictions, they can mint them as NFTs and share them with their friends.

In PredictorsApp, which aims to have high user interaction, users will understand the web3 world better and will have already reserved their place in this Web3 world.

The project is still in the development stage. Therefore, errors are likely to occur. To contribute to the project, you can let me know about any errors you find or open an Issue.

Thank you for your valuable contributions.

With love ❤️

Live Demo

Updates Notes

💪 Available Version

  • Users can register on the platform and customize their profile.
  • Users can create a prediction and bet on other predictions.
  • Users can withdraw the rewards of the predictions they have won to their Metamask wallet.
  • Users can change the language and theme of the site.

🧑‍💻 Next Versions

  • Users can like and comment on prediction posts of other users shared in the timeline.
  • Each user can gain Predictor Badges based on the experience they gain. (Head Predictor, Novice Predictor, etc.)
  • Each predictor can create a special NFT for their winning prediction.
  • Predictors can sell the NFTs they earn/produce on the marketplace.
  • Detailed statistics of shared predictions.
  • User can interact with.
  • Users can purchase a web3 ID to benefit from all the features of the platform.
  • Users can filter and browse "Trending Predictions" available on the platform.
  • Users can share their predictions as different post types.

Test-Case Results & Deploy

Prerequisites

  • Node.js
    • 10.x or later
  • NPM version
    • 5.2 or later
  • Truffle Version
    • Truffle v5.8.1 (core: 5.8.1)
    • Solidity v0.8.7 (solc-js)
  • Ganache-cli --version Ganache-cli v7.7.7

Setup

# Clone the repository
$ https://github.com/dmrdvn/PredictorsDAPP.git
# Install ganache and truffle
$ npm install -g ganache-cli
# Install node modules
$ npm install
# Open a new terminal, run below command to test compile smart contract on Binance Smart Chain Testnet
$ npm run compile --network bsctest
# Run tests on Binance Smart Chain Testnet
$ npm run test --network bsctest
# To deploy on Binance Smart Chain Testnet
$ npm migrate --network bsctest
# To run the frontend cd into directory
$ cd frontend
# Install dependencies
$ npm install
# Run the server
$ npm run start

Scripts for Binance Smart Chain Testnet

$ npm run compile bsctest
$ npm run test bsctest
$ npm run migrate bsctest

Structure

.
│
├── contracts/
│   └─ PredictorsApp.sol
│   
├── frontend/
│   ├── node_modules
│   ├── public
│   ├── src/
│   │   ├── assets/css
│   │   │   └── tailwind.css
│   │   │
│   │   ├── components/
│   │   │   ├── button
│   │   │   │   ├── index.jsx
│   │   │   │   └── UserInput.jsx
│   │   │   ├── buyweb3
│   │   │   │   └── Modal.jsx
│   │   │   ├── connect-wallet
│   │   │   ├── header-logo
│   │   │   ├── home-tab
│   │   │   ├── left-menu
│   │   │   ├── left-sidebar-box
│   │   │   ├── post
│   │   │   ├── search
│   │   │   ├── stickyheader
│   │   │   └── topic
│   │   │   └── trendpredictions
│   │   ├── contracts
│   │   ├── data
│   │   ├── layouts
│   │   ├── pages
│   │   ├── routes
│   │   ├── store
│   │   ├── utils
│   │   ├── index.js
│   │   └── Web3Client.js
│   ├── package-lock.json
│   ├── package.json
│   └── postcss-config.js
│   └── README.md
│   └── tailwind.config.js
├── migrations/
│   └── 1_deploy_contracts.js
├── node_modules
├── test/
│   └── predictorsApp.js
├── .env
├── package-lock.json
├── package.json
├── README.md
└── truffle-config.js

How it Works

Checklist

npm install # intall dependencies
npm run compile bsctest # compile your contract
npm run test bsctest # run tests on Binance Smart Chain Testnet
MetaMask chrome addon installed
cd frontend # cd the directory of the frontend
npm install # install the dependencies
npm run start # start the development server

How To

1. Open a browser and go to http://localhost:3000
2. If your metamask is installed, then the website will automatically ask you to connect to Binance Smart Chain Testnet
3. Enter your name and surname to register (your chosen address from metamask will be used to register your address)
4. Experiment!