Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adityasworks/debook_decentralize_your_social_experience

DeBook is a decentralized social media platform which used Pinata IPFS to store data
https://github.com/adityasworks/debook_decentralize_your_social_experience

blockchain decentralized decentralized-applications ethereum hardhat ipfs metamask nft smart-contracts solidity

Last synced: 6 days ago
JSON representation

DeBook is a decentralized social media platform which used Pinata IPFS to store data

Awesome Lists containing this project

README

        

# DeBook

DeBook is a decentralized social media platform built on Solidity, JavaScript, utilizing technologies such as Hardhat for development and IPFS for metadata storage. It offers a seamless experience for users to post threads and mint nfts as profiles securely on the blockchain.

## Technology Stack & Tools

- **Solidity**: Writing smart contracts to manage book lending transactions.
- **JavaScript (React & Testing)**: Frontend development and testing.
- **Ethers**: Interacting with the blockchain for book transactions.
- **Hardhat**: Development framework for Ethereum smart contracts.
- **IPFS**: Storing metadata of books in a decentralized manner.
- **React Routers**: Navigational components for the frontend.

## Requirements For Initial Setup

- Install Node.js.

## Setting Up

### 1. **Clone/Download the Repository**.

### 2. **Install Dependencies**:
```bash
cd debook
npm install
```

### 3. **Change Credentials in .env File**
- Rename the '.env.exaple' file to just '.env'
- Paste your credentials in the inverted commas('')

### 4. **Boot up Local Development Blockchain:**
```bash
cd debook
npx hardhat node
```
### 5. **Connect Development Blockchain Accounts to Metamask:**

- Copy private keys of the addresses and import them to Metamask.
- Connect Metamask to Hardhat blockchain with network 127.0.0.1:8545.
- If Hardhat is not listed in Metamask networks:
- Open Metamask in your browser.
- Click the fox icon.
- Click the top center dropdown button listing all available networks.
- Click "Add Network" and fill in the following details:
- Network Name: Hardhat
- New RPC URL: http://127.0.0.1:8545
- Chain ID: 31337
- Click "Save".
### 6. **Run Deploy Script to Migrate Smart Contracts:**
```bash
npx hardhat run scripts/deploy.js --network localhost
```
### or
```bash
npx hardhat run scripts/deploy.js --network sepolia
```
### 7. **Run Tests:**
```bash
npx hardhat test
```
### 8. **Launch Frontend:**
```bash
npm run start
```

## Screenshots

![Projectimg1](https://github.com/AdityasWorks/DeBook_Decentralize_your_social_experience/blob/master/Screenshots/Screenshot%202024-04-21%20204343.png?raw=true)
![Projectimg2](https://github.com/AdityasWorks/DeBook_Decentralize_your_social_experience/blob/master/Screenshots/Screenshot%202024-04-21%20204651.png?raw=true)
![Projectimg3](https://github.com/AdityasWorks/DeBook_Decentralize_your_social_experience/blob/master/Screenshots/Screenshot%202024-04-21%20204736.png?raw=true)
![Projectimg4](https://github.com/AdityasWorks/DeBook_Decentralize_your_social_experience/blob/master/Screenshots/Screenshot%202024-04-21%20205541.png?raw=true)