Este projeto é uma aplicação web simples de verificação de palíndromos com capacidade de implantação na blockchain da rede de testes MultiversX. Inclui:
- Um aplicativo web front-end para verificar se um determinado texto é um palíndromo.
- Um contrato inteligente MultiversX escrito em Rust para armazenamento e verificação eficientes de palíndromos.
- Scripts de implantação usando o MultiversX SDK para fácil implantação na rede de teste.
- Instruções passo a passo para iniciantes configurarem, implantarem e executarem o aplicativo.
contracts/palindrome/- Rust smart contract source code.frontend/index.html- Frontend UI for palindrome checking.frontend/main.js- JavaScript logic for palindrome checking and blockchain interaction.scripts/deploy.js- Script to deploy the smart contract to the MultiversX testnet.README.md- This documentation.
- Rust and Cargo installed for smart contract compilation.
- Node.js and npm installed.
- MultiversX CLI and SDK installed.
- A MultiversX testnet wallet with some test EGLD tokens.
- Basic knowledge of Rust, JavaScript, and blockchain concepts.
-
Clone the repository or download the project files.
-
Compile the smart contract:
cd contracts/palindrome cargo build --release -
Install frontend dependencies (if any):
cd ../../frontend npm install -
Update the smart contract address in
frontend/main.jsafter deployment. -
Deploy the smart contract to the MultiversX testnet:
cd ../scripts node deploy.js -
Open
frontend/index.htmlin a web browser to use the palindrome checker.
- Enter text in the input field.
- Click "Check Palindrome" to see if the text is a palindrome.
- (Optional) Use blockchain features if integrated.
- The Rust smart contract is optimized for low cost on the MultiversX blockchain.
- Frontend and deployment scripts are designed for simplicity and ease of use.
For questions or issues, please open an issue or contact the maintainer.
This project is designed to be beginner-friendly and easy to extend.