{"id":26445748,"url":"https://github.com/ayushpremrocks/getmood-dapp","last_synced_at":"2026-05-20T02:39:57.763Z","repository":{"id":236381187,"uuid":"792497473","full_name":"Ayushpremrocks/GetMood-dApp","owner":"Ayushpremrocks","description":"Developed a decentralized application (dApp) featuring a user-friendly frontend website built with HTML, CSS, and JavaScript, enabling users to interact with a Solidity smart contract deployed on the Ethereum Sepolia testnet for managing moods.","archived":false,"fork":false,"pushed_at":"2024-11-18T03:19:36.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-18T04:22:02.992Z","etag":null,"topics":["decentralized-application","solidity"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ayushpremrocks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-26T19:45:30.000Z","updated_at":"2024-11-18T03:20:36.000Z","dependencies_parsed_at":"2024-11-18T09:17:39.927Z","dependency_job_id":null,"html_url":"https://github.com/Ayushpremrocks/GetMood-dApp","commit_stats":null,"previous_names":["ayushpremrocks/decentralized-application-on-ethereum","ayushpremrocks/getmood-dapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayushpremrocks%2FGetMood-dApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayushpremrocks%2FGetMood-dApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayushpremrocks%2FGetMood-dApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayushpremrocks%2FGetMood-dApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ayushpremrocks","download_url":"https://codeload.github.com/Ayushpremrocks/GetMood-dApp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244211626,"owners_count":20416677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["decentralized-application","solidity"],"created_at":"2025-03-18T11:34:21.423Z","updated_at":"2026-05-20T02:39:52.724Z","avatar_url":"https://github.com/Ayushpremrocks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GetMood-dApp\n\nA decentralized application (dApp) built on Ethereum that allows users to **set** and **get** their mood on the blockchain. This project is powered by **Solidity**, **Ethers.js**, and the **Sepolia testnet**.\n\n---\n\n## 🚀 Features\n\n- **Set Mood**: Input your current mood and store it on the blockchain.\n- **Get Mood**: Retrieve your previously stored mood from the blockchain.\n- **Decentralized**: Powered by Ethereum smart contracts, ensuring security and immutability.\n- **Simple UI**: Intuitive and clean user interface for seamless interaction.\n- **Wallet Integration**: Easily connect your wallet through MetaMask.\n\n---\n\n## 📜 Project Overview\n\nThis project demonstrates the basics of creating a decentralized application (dApp) by integrating the Ethereum blockchain with a simple web-based interface. Users can set and retrieve their moods, which are stored securely on the blockchain via a smart contract.\n\n**Smart Contract**:  \nThe core of the application is a Solidity smart contract named `MoodDiary`. It features two functions:  \n- `setMood`: Accepts a mood string and stores it on the blockchain.  \n- `getMood`: Retrieves the mood string from the blockchain.\n\n**Front-End**:  \nThe front-end, built with HTML, CSS, and JavaScript, interacts with the smart contract using **Ethers.js**.\n\n**Blockchain Network**:  \nThe project uses the **Sepolia Testnet** for testing and deployment. \n\n---\n\n## 🛠️ Tech Stack\n\n### Smart Contract\n- **Solidity**: For writing the `MoodDiary` smart contract.\n- **Ethereum**: Blockchain platform for deploying the smart contract.\n- **Remix IDE**: Used for writing and deploying the smart contract.\n\n### Front-End\n- **HTML/CSS**: For creating the user interface.\n- **JavaScript**: To handle interactions with the blockchain using Ethers.js.\n- **Ethers.js**: A library for blockchain interactions.\n\n### Tools and Dependencies\n- **MetaMask**: Wallet for interacting with the dApp.\n- **Sepolia Testnet**: Ethereum test network for development and testing.\n\n---\n\n## 📂 Project Structure\n   ```plaintext\n   ├── index.html       # Front-end of the dApp\n   ├── scripts.js       # JavaScript logic to interact with the smart contract\n   ├── style.css        # CSS for styling the dApp\n   └── mood.sol         # Smart contract written in Solidity\n   ```\n---\n## 💻 How to Run the Project Locally\n\n1. Clone this repository\n   ```bash\n   git clone https://github.com/Ayushpremrocks/GetMood-dApp\n   cd mood-diary\n   ```\n2. Deploy the smart contract:\n  - Use Remix IDE to deploy the mood.sol contract on the Sepolia Testnet.\n  - Copy the deployed contract's address and replace the value of MoodContractAddress in scripts.js.\n3. Serve the front-end:\n  - Open index.html in a browser (e.g., via Live Server in VS Code).\n4. Connect MetaMask:\n  - Ensure MetaMask is configured for the Sepolia Testnet.\n  - Connect your wallet to the dApp.\n5. Interact with the dApp:\n  - Input a mood and click Set Mood to store it on the blockchain.\n  - Click Get Mood to retrieve your current mood.\n---\n## 🙌 Acknowledgments\n  - Ethereum Community for providing resources and documentation.\n  - MetaMask for seamless wallet integration.\n  - Ethers.js for simplifying interactions with Ethereum.\n---\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayushpremrocks%2Fgetmood-dapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayushpremrocks%2Fgetmood-dapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayushpremrocks%2Fgetmood-dapp/lists"}