Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drisskhattabi6/mini-social-network-dapp
This Repo contains a decentralized "Mini Social Network" implemented in Solidity, this is just a lab in 'BLOCKCHAIN & SECURITE APPLICATIVE' Module.
https://github.com/drisskhattabi6/mini-social-network-dapp
betcoin blockchain blockchain-technology dapp decentralized-applications ethereum ethereum-contract ethereum-dapp remix remix-ide smart-contract solidity
Last synced: 3 months ago
JSON representation
This Repo contains a decentralized "Mini Social Network" implemented in Solidity, this is just a lab in 'BLOCKCHAIN & SECURITE APPLICATIVE' Module.
- Host: GitHub
- URL: https://github.com/drisskhattabi6/mini-social-network-dapp
- Owner: drisskhattabi6
- Created: 2024-11-06T16:49:33.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-06T17:14:46.000Z (3 months ago)
- Last Synced: 2024-11-06T18:19:40.278Z (3 months ago)
- Topics: betcoin, blockchain, blockchain-technology, dapp, decentralized-applications, ethereum, ethereum-contract, ethereum-dapp, remix, remix-ide, smart-contract, solidity
- Language: Solidity
- Homepage:
- Size: 966 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mini Social Network DApp
A decentralized "Mini Social Network" implemented in Solidity, allowing users to publish, view, and count posts on the Ethereum blockchain. This smart contract application is a basic decentralized social network where users can post messages, view posts, and track the total number of posts, deployed using the Remix IDE and a test Ethereum network.
![DApp](https://kingslanduniversity.com/wp-content/uploads/2019/06/dapps-1024x512.jpg)
## Features
1. **Publish a Post**: Allows users to publish messages that are stored on the blockchain.
2. **Retrieve a Post**: Users can retrieve a specific post and see the message and author address.
3. **Count Total Posts**: Keeps track of the total number of posts in the network.## Project Structure
- **MiniSocial.sol**: Solidity smart contract file containing the contract definition and functions.
## Smart Contract Functions
1. **publishPost**: Allows a user to publish a new post.
2. **getPost**: Retrieves a specific post by index.
3. **getTotalPosts**: Returns the total number of posts published.## Setup and Deployment
1. **Remix IDE**:
- Open [Remix IDE](https://remix.ethereum.org/).
- Create a new file named `MiniSocial.sol` and paste the contract code.2. **Compile the Contract**:
- In Remix, go to the "Solidity Compiler" tab.
- Compile `MiniSocial.sol`.3. **Deploy the Contract**:
- Go to the "Deploy & Run Transactions" tab.
- Deploy the `MiniSocial` contract.---
This repository serves as a simple introduction to creating decentralized applications (DApps) with Solidity and is designed for educational purposes.