Skip to content

HelloSniperMonkey/hope-and-paryers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ethereum Todo List React

A decentralized todo list application built with React and Ethereum smart contracts. This project demonstrates the integration of blockchain technology with a modern web frontend, allowing users to create, manage, and store their todos on the Ethereum blockchain.

🚀 Features

  • Connect to MetaMask wallet
  • Create and manage todos on the blockchain
  • Mark todos as completed
  • Persistent storage on Ethereum network
  • Real-time updates using Web3
  • Responsive React UI

🛠 Tech Stack

  • React.js
  • Ethereum
  • Web3.js
  • Solidity
  • Truffle
  • MetaMask

📋 Prerequisites

Before running this project, make sure you have the following installed:

  • Node.js (v14.0.0 or later)
  • npm
  • MetaMask browser extension
  • Ganache (for local blockchain development)

🔧 Installation

  1. Clone the repository:
git clone https://github.com/HelloSniperMonkey/eth-todo-list-react.git
cd eth-todo-list-react
  1. Install dependencies:
npm install
  1. Start the local blockchain with Ganache

  2. Deploy the smart contracts:

truffle migrate --reset
  1. Start the development server:
npm start

🔄 Smart Contract Deployment

The smart contracts are located in the contracts directory. To deploy them:

  1. Make sure Ganache is running
  2. Configure truffle-config.js with your network settings
  3. compile the truffle contract with truffle complie
  4. Run migrations:
truffle migrate --reset

🎮 Usage

  1. Connect MetaMask to your local network (Ganache)
  2. Import account by copying the private key from the first ganache address
  3. for the first time metamask will prompt you if you want to connect metamask to the site
  4. Create a new todo by entering text and clicking "Add Todo"
  5. Mark todos as complete by clicking the checkbox
  6. All transactions are stored on the blockchain

📁 Project Structure

eth-todo-list-react/
├── contracts/            # Smart contracts
├── migrations/           # Truffle migrations
├── public/              # Public assets
├── src/                 # React source files
│   ├── TodoList.js      # TodoList component
│   ├── TodoList.css      # TodoList style
│   ├── config.js        # config file
│   ├── App.css          # Main App style
│   └── App.js          # Main App component
├── test/                # Test files
└── truffle-config.js    # Truffle configuration

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

👤 Author

HelloSniperMonkey Maintained by Soumyajyoti Mohanta

🙏 Acknowledgments

  • OpenZeppelin for smart contract libraries
  • Truffle Suite for development tools
  • React community for frontend resources
  • this app has been created after reffering at dapp university youtube channel

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published