DeFi Social App
A decentralized social media application with DeFi features, built on Internet Computer and Stacks.
Features
- Create and view social media posts
- View STX token balance
- Stake STX tokens
Prerequisites
- Node.js (v14 or later)
- dfx (Internet Computer SDK)
- Stacks wallet (for interacting with Stacks blockchain features)
Setup
-
Clone the repository:
git clone https://github.com/arhansuba/defi-social-app.git cd defi-social-app -
Install dependencies:
npm install -
Create a
.envfile in the root directory and add your canister ID:REACT_APP_CANISTER_ID=your_canister_id_here -
Start the Internet Computer local replica:
dfx start --background -
Deploy the canister:
dfx deploy -
Start the React development server:
npm start -
Open your browser and navigate to
http://localhost:3000
Development
- The
src/componentsdirectory contains React components - The
src/servicesdirectory contains services for interacting with Internet Computer and Stacks - Modify
src/App.jsto change the main application structure
Deployment
To deploy to the Internet Computer mainnet, follow the dfx deployment guide in the Internet Computer documentation.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.# defi-social-app
Description