Threed is a socialfi dApp built on the Binance Smart Chain (BNB Chain) that allows users to create and join communities using token-gated NFTs. Users can also create, buy, sell, and rent NFTs within these communities.
Experience the new social at https://threed.cc
Follow us on X at https://twitter.com/threedapp
To get started with Threed on your local development environment, follow these steps:
-
Clone this repository:
git clone https://github.com/glitchpilot/Threed-BNBC-
cd Threed -
Install project dependencies: npm install
-
Configure your
.env
file with the required environment variables. You should setMNEMONIC
,BSC_TESTNET_RPC
, andBSC_MAINNET_RPC
to your own values. -
Deploy the smart contracts to the Binance Smart Chain Testnet or Mainnet (see Deployment).
-
Run the dApp locally:
npm start
Community.sol
: Manages the creation and access control of communities.Token.sol
: Implements the BEP-20 token used for gating access to communities.NFT.sol
: Handles the creation, buying, selling, and renting of NFTs.
You can run tests for the smart contracts using Truffle. Make sure to configure your Truffle environment in truffle-config.js
before running tests.
To run tests, use the following command:
truffle test
To deploy the smart contracts to the Binance Smart Chain (Testnet or Mainnet), use Truffle migrations. Ensure that you have configured your truffle-config.js
file with the correct network settings.
Use the following commands to deploy to a specific network:
For Binance Smart Chain Testnet:
truffle migrate --network bscTestnet
For Binance Smart Chain Mainnet:
truffle migrate --network bscMainnet
Contributions to Threed are welcome! Feel free to open issues or submit pull requests for any improvements or bug fixes.
This project is licensed under the MIT License - see the LICENSE file for details.