Conectar una aplicación React con una Wallet de Ethereum.
Connect a React app with a Ethereum Wallet.
A partir de la entrevista de @Midudev a Oscar Barajas, seguí las instrucciones para hacer la demo para conectar una aplicación React con una Wallet de Ethereum.
Entrevista: Todo lo que necesitas para Aprender y Entender Web3 como desarrollador JavaScript https://www.youtube.com/watch?v=A5SZ6OXKjSw&t=615
Las tecnologías utilizadas son: ReactJs 18, Next.Js, Web3 React Library y MetaMask Wallet.
ReactJs 18: https://reactjs.org/blog/2022/03/29/react-v18.html Next.Js: https://nextjs.org/ Web3 React Library: https://github.com/Uniswap/web3-react MetaMask Wallet: http://metamask.io
Repo con la demo: https://github.com/tomkat-cr/web3_walllet_conn
Este es un proyecto Next.js inicializado con create-next-app.
Primero, ejecute el servidor de desarrollo:
npm run dev
# or
yarn devAbra http://localhost:3000 en su navegador para ver el resultado.
Puede comenzar editando la página modificando el archivo pages/index.js. La página se auto actualizará a medida que vaya editando el archivo.
Se puede tener acceso a la API API routes desde http://localhost:3000/api/hello. Este endpoint puede ser editado en pages/api/hello.js.
El directorio pages/api esta mapeado a /api/*. Los archivos en este directorio son tratados como rutas o API routes en vez de Páginas de React.
Para aprender más sobre Next.js, de un vistazo a los siguientes recursos:
- Next.js Documentation - aprenda sobre las características y el API de Next.js.
- Learn Next.js - un tutorial interactivo sobre Next.js.
Es posible hacer check out del repositorio the Next.js GitHub repository - su retroalimentación (feedback) y aportes son bienvenidos!
La manera más fácil de desplegar su aplicación Next.js es utilizando la plataforma Vercel Platform de los creadores de Next.js.
Recomendamos revisar nuestra documentación Next.js deployment documentation para más detalles.
After whatched the interview video with @Midudev and Oscar Barajas, I followed the instructions to build a demo to connect a React app with a Ethereum Wallet.
Interview: All you need to learn and understand from Web3 as a JavaScript developer https://www.youtube.com/watch?v=A5SZ6OXKjSw&t=615
Technology stack used: ReactJs 18, Next.Js, Web3 React Library, MetaMask Wallet.
ReactJs 18: https://reactjs.org/blog/2022/03/29/react-v18.html Next.Js: https://nextjs.org/ Web3 React Library: https://github.com/Uniswap/web3-react MetaMask Wallet: http://metamask.io
Demo code repo: https://github.com/tomkat-cr/web3_walllet_conn
This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.
API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js.
The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.