"From scratch: using Solidity and Remix to develop your first blockchain white wall Dapp step by step - LoveOnChain"

"From Scratch: Using Solidity and Remix to develop your first blockchain confession wall Dapp step by step - LoveOnChain"

Project Description:

LoveOnChain is a confession wall application based on blockchain technology. By combining Vue.js and Truffle development platforms, it realizes decentralized confession on a global scale.

This project uses the Ethereum blockchain as the underlying technology, combined with the Truffle development framework to build smart contracts, providing a new and unique way of confession. Users write their confession information into the blockchain through smart contracts, and the information will be permanently stored and cannot be tampered with. In the front-end part, we adopt Vue.js development, which provides users with a friendly interactive experience, enabling users to easily publish and view confession information.

LoveOnChain is not only a platform for people to openly express their emotions around the world, it also demonstrates the potential of blockchain technology in a wide range of social applications. It has the following main features:

  • Decentralization: As a blockchain-based application, LoveOnChain is completely decentralized. All confession information is stored on the blockchain, and there is no centralized server, making the storage of information more open and transparent.

  • Permanent preservation: Once information is written into the blockchain, it cannot be modified or deleted. This means that the user's confession information will be permanently stored, so that every emotion can be remembered for a long time.

  • User-friendly: We use Vue.js as the front-end framework, which provides a simple and intuitive user interface, so that users can easily use this application without understanding complex blockchain technology.

  • Safe and reliable: Using the smart contracts of Truffle and Ethereum, we ensure the safety and reliability of every confession information.

LoveOnChain brings a new possibility for confession, it makes every confession special, and every love will be preserved forever. No matter where you are, no matter where your loved one is, you can leave your love on LoveOnChain.

Project begining:

Using the Truffle project on Ganache

If you already have a project using the Truffle framework and want to test and develop on Ganache, you can follow these steps:

1. Install and start Ganache

First, you need to install Ganache. This can be done from Truffle's official website . Then, start Ganache.

2. Configure truffle-config.js

In your Truffle project, you need to modify truffle-config.js(probably on Windows truffle.js) files to connect to Ganache. By default, Ganache runs on localhost on port 7545. Therefore, your configuration file should look like this:

module.exports = {
    
    
  networks: {
    
    
    development: {
    
    
      host: "localhost",
      port: 7545,
      network_id: "*"
    }
  }
};

3. Deploy the smart contract

Then, you can deploy your smart contract to Ganache:

truffle migrate --reset

4. This project needs to provide an account to send coins:

##修改LoveOnChain/src/components/header.vue

# 120行和121行 这个账号从Ganache复制
const centralAccount = '0x0c174b3140b47B1Ef2686236Efa1591686F19681';
const privateKey = 'adc95b953256846bd55e7793ee4748cf5eb49f6c0a498f37ac69fbc98db03e84';

5. Install the required dependencies

npm install

6. Start the project

npm run dev

running picture

Please add a picture description

Please add a picture description
Please add a picture description
Please add a picture description
project address

Guess you like

Origin blog.csdn.net/qq_64421968/article/details/131191486